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

RE: Moving Specific content/element to the end of the

Subject: RE: Moving Specific content/element to the end of the output file
From: "Ramkumar" <ramkumar@xxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Oct 2009 11:05:40 +0530
RE:  Moving Specific content/element to the end of the
Hi Martin,

I got expected thanks a lot.


Regards,
Ramkumar

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx] 
Sent: Tuesday, October 06, 2009 5:53 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Moving Specific content/element to the end of the output
file

Ramkumar wrote:

> 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.

Consider to post a small input sample and the corresponding HTML you want
the stylesheet to create.
If you want to move all footnotes to the end then you probably want e.g.

<xsl:template match="doc">
   <html>
     <head>
     </head>
     <body>
       <xsl:apply-templates/>
       <xsl:apply-templates select="//footnote" mode="m1"/>
     </body>
   </html>
</xsl:template>

<xsl:template match="footnote"/>

<xsl:template match="footnote" mode="m1">
   <!-- now output what you want to do with footnotes here -->
</xsl:template>

and then add templates for the default mode that copy or transform the
elements you want in the HTML document before listing the footnotes at the
end.

Martin Honnen
http://msmvps.com/blogs/martin_honnen/

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.