|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT: Xpath: sets: position()
Trying to get the first occurrence of an XML element marked. Can't be so difficult, can it? Please - what am I doing wrong? I'm doing this: <xsl:appy-templates/> <xsl:template match="/SPC/*">
<xsl:value-of select="name()"/>
<xsl:choose>
<xsl:when test="position()='1'">
<H3><xsl:value-of select="@TITLE"/></H3>
</xsl:when>
<xsl:otherwise>
<H4><xsl:value-of select="@TITLE"/></H4>
</xsl:otherwise>
</xsl:choose>
</xsl:template>Thanks in anticipation, lee 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








