<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