Altova Mailing List Archives


Re: [xsl] trying to set a parameter equal to an elements attribute

From: "Noel Golding" <noel@--------------->
To:
Date: 8/21/2002 12:55:00 PM
other than forget the end xsl:param tag?

----- Original Message -----
From: "Noel Golding" <noel@xxxxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, August 21, 2002 4:39 PM
Subject: [xsl] trying to set a parameter equal to an elements attribute


> 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


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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.