|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] When first Node add a style in XSL
How do I put the proper test in for the first Node I encounter, add a
top border:?
<xsl:template match="category">
<xsl:choose>
<xsl:when test="first::category">
<xsl:element name="h3">
<xsl:attribute name="style">border-top:
1px</xsl:attribute>
<xsl:value-of select="@display_name"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="h3">
<xsl:value-of select="@display_name"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
|
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








