This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: trying to set a parameter equal to an elements attribute
- From: "Noel Golding" <noel at spearreport dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 21 Aug 2002 16:54:06 -0400
- Subject: Re: [xsl] trying to set a parameter equal to an elements attribute
- References: <038501c24952$eb4f64b0$0201a8c0@spearreport.local>
- Reply-to: xsl-list at lists dot mulberrytech dot com
other than forget the end xsl:param tag?
----- Original Message -----
From: "Noel Golding" <noel@spearreport.com>
To: <XSL-List@lists.mulberrytech.com>
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