[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

Subject:
From: "Monica Gupta" <monica@xxxxxxxx>
Date: Wed, 29 Nov 2000 12:01:14 -0800
monica gupta
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.