How to output a subset of preceeding nodes

Subject: How to output a subset of preceeding nodes
From: "Steve Carton" <scarton@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Sep 2000 13:14:04 -0400
I need to use XSL/T in this manner:

<xsl:template match="P">
	<xsl:apply-templates />
	<xsl:call-template name="Dump Footnotes">
	<xsl:with-param name="fn" select="//FN"/>
	</xsl:call-template>
</xsl:template>

<xsl:template name="Dump Footnotes">
<xsl:param name="fn"/>
	<xsl:for-each select="$fn">
		<p/><xsl:value-of select="P"/>
	</xsl:for-each>
</xsl:template>

What I need to do is to process all FN elements located prior to the current
<P> element, BUT after the last set of <FN> elements I already processed!

Ideas?



-----------------------www.retrievalsystems.com
Steve Carton  703/749-0012
Retrieval Systems Corporation
2071 Chain Bridge Road, Suite 510
Vienna, VA  22182


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread