Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using nodes twice

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
0
0
US
I have an xslt file that runs through my XML file and works fine.

It is essentially set up like:

<xsl:template match="/*">
<xsl:copy>
<xsl:apply-templates select="Report"/>
<xsl:apply-templates select="Parties"/>
<xsl:apply-templates select="Programs"/>
</xsl:copy>
</xsl:template>

Then all my templates.

However, I have a set of Nodes - "Report/Forms" - that get handled in the first apply-templates. That template would be:

<xsl:template match="REPORT/FORM">
</template>

I cannot find a way to process just the "FORM" nodes a 2nd time. I need to process them after the "Programs" apply-templates as well to write out some specific xml that must be at the end.

Is there a way to do this? I can't seem to make this work. I tried adding a second template section but it will only process one of them.

Thanks,

Tom

But I need to also
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top