|
Subject: [xsl] When first Node add a style in XSL From: "Dan Acuff" <dacuff@xxxxxxxxxxxxxx> Date: Fri, 16 May 2008 09:50:41 -0400 |
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>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] [ann] oXygen XML Editor 9.2, George Cristian Bina | Thread | Re: [xsl] When first Node add a sty, Michael Ludwig |
| Re: [xsl] XSL in the AJAX world, Jesper Tverskov | Date | Re: [xsl] Conditional Setting of a , Tony Graham |
| Month |