[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|