[xsl] XSLT: Xpath: sets: position()

Subject: [xsl] XSLT: Xpath: sets: position()
From: Lee Goddard <Home@xxxxxxxxxxxxxx>
Date: Tue, 27 Feb 2001 16:47:23 +0000
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:template match="/SPC/*">
  <xsl:value-of select="name()"/>
        <xsl:when test="position()='1'">
          <H3><xsl:value-of select="@TITLE"/></H3>
          <H4><xsl:value-of select="@TITLE"/></H4>

Thanks in anticipation,

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread