Subject: Re: AW: [xsl] Special processing for the first process of an element From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Thu, 11 Nov 2004 23:52:22 +0100 |
<xsl:template match="result">
<xsl:choose>
<xsl:when test="preceding::result">
<result class="rest"><xsl:apply-templates select="*|text()" /></result>
</xsl:when>
<xsl:otherwise>
<result class="first"><xsl:apply-templates select="*|text()" /></result>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
(top-level) <xsl:key name="results" match="result" use="'all'" />
(result template) <xsl:when test="generate-id(.) = generate-id(key('results', 'all')[1])"> ... first ... </xsl:when>
Cheers, Geert
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: AW: [xsl] Special processing fo, Peter Hickman | Thread | RE: [xsl] Special processing for th, cknell |
Re: [xsl]characters in xsl, Peter Bradley | Date | Re: [xsl] xml -> htmlhelp and chara, Allin Cottrell |
Month |