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

Re: Fwd: Moving an Element to new place/Element Repos

Subject: Re: Fwd: Moving an Element to new place/Element Reposition
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 10 Feb 2009 12:50:50 +0100
Re:  Fwd: Moving an Element to new place/Element  Repos
arut che wrote:

    I want to move an element(floats-second child of root) to last
child of body(third child of root element)  for this i am using the
following code:
<xsl:template match="body">
<xsl:apply-templates select="sections,acknowledgment,../floats"/>
</xsl:template>
The above code moves the floats element and transform as i defined.
But it is also alive & transformed at its original location too.

In the template of the root element make sure you do not process floats elements e.g.
<xsl:template match="/*">
<xsl:copy>
<xsl:apply-templates select="*[not(self::floats)]"/>
</xsl:copy>
</xsl:template>


If that does not help then please show a sample of your XML input document and also provide a sample of the XML result you want to create.

--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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.