xsl-list
[Top] [All Lists]

RE: Using a variable as an attribute name

2003-01-21 00:32:42
<xsl:variable name="attributeName" select="'charstyname'"/>
 <xsl:variable name="before" select="preceding-sibling::*[1]"/>
  
 <xsl:when test="not( $before[(_at_)$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



<Prev in Thread] Current Thread [Next in Thread>