Jeremy,
You had the right idea with position() -- the first <sense> in the doc would
be position() = 1. If you mean something else, please post a small input
sample.
<xsl:variable name="first" select="1" />
<xsl:template match="sense">
<xsl:if test"$first=1">
<br />
<xsl:variable name="first" select="0" />
</xsl:if>
<div><xsl:apply-templates /></div>
</template>
This doesn't work in XSL -- variables can't change their value once set.
They're "variables" in the sense of mathematical variables which have a
specific, non-changing value throughout a computation, rather being
variables in the sense of imperative laguage variables that can have a
different value at different points of a computation.
--A
_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--