[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: preceding-sibling::chapter[nummer]
Hi,
I have the following code in my xsl Stylesheet:
<xsl:attribute-set name="header.table.properties">
<xsl:attribute name="background-color">
<xsl:choose>
<xsl:when test="preceding-sibling::chapter[2]">green</xsl:when>
<xsl:when test="preceding-sibling::chapter[1]">red</xsl:when>
<xsl:otherwise>blue</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
… …
</xsl:attribute-set>
In the output file the chapter one does not have red color in header, but blue. Chapter 2 does not have green color, but red. Why?
Is chapter ein “preceding-sibling” node of header.table? Where can I see this? I think it is not in DocBook-Scheama. I checked for example the docBook Definitive guide (http://www.docbook.org/tdg5/en/html/book.html ). It does not show this.
Thanks for any help!
Lily
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]