This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re:


Try this,
<xsl:for-each select = "//accounts_list">
Good luck,

Naresh Shah
At 12:01 PM 11/29/00 -0800, you wrote:
>Hi,
>
>I am trying to merge xml and xsl. But my data is getting displayed at the
>end of page.
>
>output is:
>
>accounts
>_________
>__________
>Change Password
>anil anita
>
>whereas I am expecting it to come like:
>
>accounts
>_________
>anil anita
>__________
>Change Password
>
>xml file :
>
>
><?xml version = "1.0"?>
><?xml-stylesheet href="list.xsl" type="text/xsl" ?>
><page>
><accounts>
><account_list>
>   anil
>   anita
></accounts_list>
></accounts>
></page>
>
>xsl file :
>
>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
><xsl:template match="page5">
><html><head><title>list</title>
><body>
><table><tr><td>accounts</td></tr></table>
><hr color="666699" align="left" width="415"></hr>
>
><xsl:apply-templates/>
></body>
></html>
></xsl:template>
>
><xsl:template match="accounts">
><xsl:for-each select = "accounts_list">
><xsl:value-of select = "accounts_list">
></xsl:for-each>
><hr color="666699" align="left" width="415"></hr>
><table>
><tr>
><td bgcolor="silver">
><a href="changepassword">Change Password</a>
></td>
></tr>
></table>
><xsl:apply-templates/>
></xsl:template>
></xsl:stylesheet>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]