Subject: RE: Using a variable as an attribute name
From: Cams Ismael <Ismael.Cams@xxxxxxxxxxxxxxx>
Date: Tue, 21 Jan 2003 08:32:42 +0100
|
> <xsl:variable name="attributeName" select="'charstyname'"/>
> <xsl:variable name="before" select="preceding-sibling::*[1]"/>
> <xsl:when test="not( $before[@$attributeName='Footnote'] )">
> [...]
> </xsl:when>
You can not use @$attributeName
Instead try:
<xsl:variable name="attributeName" select="'@charstyname'"/>
<xsl:variable name="before" select="preceding-sibling::*[1]"/>
<xsl:when test="not( $before[$attributeName='Footnote'] )">
[...]
</xsl:when>
Hope this helps.
Kind regards,
Ismaël
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|