|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: first of type element position
Use the preceding-sibling axis to test for TOC.SECT elements that come before
the current element.
<xsl:template select="TOC.SECT">
<xsl:choose>
<xsl:when test="preceding-sibling::TOC.SECT">
The current TOC.SECT is *not* the first.
</xsl:when>
<xsl:when test="not(preceding-sibling::TOC.SECT)">
The current TOC.SECT *is* the first.
</xsl:when>
</xsl:if>
--
Peter Davis
Bumper sticker:
All the parts falling off this car are of the very finest
British manufacture.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








