My xsl style sheet uses the syntax below to test for the value of the t attribute of the parent <list element:
------------
<xsl:when test="ancestor::LIST/@T=B'"><xsl:text disable-output-escaping="yes">&St;hi&St;</xsl:text></xsl:when> <xsltherwise></xsltherwise></xsl:choose>
<xsl:text disable-output-escaping="yes"></xsl:text>
<xsl:choose><xsl:when test="ancestor::LIST/@T='OB'"><xsl:text disable-output-escaping="yes"><dd> </xsl:text>
</xsl:when> <xsltherwise></xsltherwise> </xsl:choose>
------------
The problem is that my data allows nested lists, and the above syntax checks all ancestors called <list> of a given element, not just the parent.
I need the style sheet to check the t attr of the parent <list> element, and ignore any grandparent (or higher) <list>.
Thank you!
DAVE
------------
<xsl:when test="ancestor::LIST/@T=B'"><xsl:text disable-output-escaping="yes">&St;hi&St;</xsl:text></xsl:when> <xsltherwise></xsltherwise></xsl:choose>
<xsl:text disable-output-escaping="yes"></xsl:text>
<xsl:choose><xsl:when test="ancestor::LIST/@T='OB'"><xsl:text disable-output-escaping="yes"><dd> </xsl:text>
</xsl:when> <xsltherwise></xsltherwise> </xsl:choose>
------------
The problem is that my data allows nested lists, and the above syntax checks all ancestors called <list> of a given element, not just the parent.
I need the style sheet to check the t attr of the parent <list> element, and ignore any grandparent (or higher) <list>.
Thank you!
DAVE