G. Ken Holman wrote:
Betty Harvey wrote:
At 2003-06-02 09:56 -0400, Betty Harvey wrote:
I want to get the a true when I am inside <b name="cde"> and
the preceding <b> contains the attribute 'name="abc"'.
<xsl:if test="preceding-sibling::b[(_at_)name='abc']">
Then Betty wrote:
I am taking Ken's advice and rewriting
the XSLT to use <xsl:for-each> but I am still
having difficulty finding the immediately preceding-sibling.
Now it is always giving a true because there is a qualifying
sibling in the tree.
I think Ken means
<xsl:if test="preceding-sibling::b[1][(_at_)name='abc']">
^^^
This would solve the problem that Betty encountered.
Lars
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list