|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] trying to set a parameter equal to an elements attribu
when I apply the following transformation I get a blank output. can anyone
tell me what I am doing wrong?
<!-- XML FILE -->
<root>
<header volume="8"/>
<article>
<para>
Some text here
</para>
</article>
</root>
<!-- XSLT FILE -->
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:template match="root">
<xsl:param name="vol"><xsl:value-of select="header[@volume]"/>
</xsl:template>
</xsl:stylesheet>
Thanks
Noel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








