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:


Hi Monica,

This works.

xml file
<?xml version = "1.0"?>
<?xml-stylesheet href="account.xsl" type="text/xsl" ?>
<page>
<accounts>
<account_list>
  anil
  anita
</account_list>
</accounts>
</page>

xsl stylesheet:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="page">
<html><head><title>list</title></head>
<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:value-of select = "account_list"/>
<hr color="666699" align="left" width="415"></hr>
<table>
<tr>
<td bgcolor="silver">
<a href="changepassword">Change Password</a>
</td>
</tr>
</table>
</xsl:template>

</xsl:stylesheet>


---------
Conor Ryan,
XML Workshop Ltd,
10 Greenmount Industrial Estate, Harolds Cross, Dublin 12, IRELAND.
Email: cryan@xmlw.ie
Phone: +353 1 4547811; Fax: +353 1 4731626
Web: http://www.xmlw.ie/


 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]