This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT: Xpath: sets: position()
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] XSLT: Xpath: sets: position()
- From: Francis Norton <francis at redrice dot com>
- Date: Tue, 27 Feb 2001 17:47:57 +0000
- References: <5.0.2.1.0.20010227164311.021185a0@pop3.activeisp.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
==off list==
Lee,
Check out http://www.jenitennison.com/xslt/index.html for an awesome
resource on grouping problems etc.
Francis.
Lee Goddard wrote:
>
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list