[EMAIL PROTECTED] wrote:
Hi everybody,

This is a pure XSLT question and probably best asked on the XSLT list:

http://xml.apache.org/fop/maillist.html#xslt-mulberry


This <new> tag can go n times each time I need the value of cureent tag vaue <new> and it immediate previous.

The following XSL snippet should give you an idea of how to do it:

<xsl:template match="new">
<xsl:choose>
<xsl:when test="preceding-sibling::new">
<xsl:value-of select="preceding-sibling::new"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="."/>
</xsl:template>

Since you didnt say what you were trying to do with these values I havent done anything with them.

<snip/>

Chris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to