Subject: Re: [xsl] modes and temp trees (was Re: [xsl] grouping + global variable (?)) From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Tue, 17 Aug 2004 16:01:51 -0400 |
Since the current element is a <mods:mods> element, the test is guaranteed to be true.
What you want is simply:
<xsl:if test="position() = 1"> ... </xsl:if>
This tests whether the current <mods:mods> element is the first within the group of <mods:mods> elements that you're looking at.
Declare it like:
<xsl:key name="mods" match="mods:mods" use="@ID" />
and use it like:
<xsl:variable name="bibref" select="key('mods', $idref)" />
Keys are much faster and neater than searching through the entire document using a predicate.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] modes and temp trees (was, Jeni Tennison | Thread | Re: [xsl] modes and temp trees (was, Bruce D'Arcus |
Re: [xsl] partial attribute matchin, cking | Date | Re: [xsl] partial attribute matchin, ARiley |
Month |