[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Moving Specific content/element to the end of the outp

Subject: Moving Specific content/element to the end of the output file
From: "Ramkumar" <ramkumar@xxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Oct 2009 17:47:18 +0530
 Moving Specific content/element to the end of the outp
Hi List,

I am doing xml to html transformation using xslt v2.0 with saxon.

In my input xml file, element 'footnote' may come any where in my xml
structure. There is specific parent element for this, common root element is
'doc'. 

I will try to move all the footnotes to the end of the output file.

XSLT(Part of my xslt):
======================

<!--Match all the elements-->
<xsl:template match="/"><xsl:apply-templates/></xsl:template>

<!--To retain umnatched element-->
<xsl:template match="*">
		<xsl:copy>
			<xsl:copy-of select="@*"/>
			<xsl:apply-templates/>
		</xsl:copy>
</xsl:template>

<!--Root Element-->
<xsl:template match="doc"><html><xsl:apply-templates/></html></xsl:template>

<!--Footnote-->
<xsl:template match="footnote"><sup><xsl:value-of
select="substring(@identifier,string-length(@identifier)"/></sup><xsl:text>
</xsl:text><xsl:apply-templates/></xsl:template>

Please suggest how to achieve my request.

Regards,
Ramkumar

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.