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

Re[2]: Ouput escaping / XPath

Subject: Re[2]: Ouput escaping / XPath
From: Manuel Baehnisch <s716631@xxxxxxxxxxxxx>
Date: Tue, 15 Nov 2005 21:53:06 +0100
manuel b hnisch
Hi David,

thanks allot. But I have to say I'm a bit baffled. To my understanding
this template copies only all the attributes (which I thought was
<element attribute="...">). How come this copies also the child
elements and the text???

DC> <xsl:template match="*" mode="copy">
DC>  <xsl:copy>
DC> <xsl:copy-of select="@*"/>
DC> <xsl:apply-templates mode="copy"/>
DC> </xsl:copy>
DC> </xsl:template>


>> The element() function seems to copy the comment
>> as well. What am I doing wrong here?

DC> If you copy an element node then the copy has exatly the same children
DC> as the original (or rather has copies of those children) so it has teh
DC> smae text, comments and child elements.

So for that matter if I <xsl:copy-of select="child::element()"/> it automatically
produces a deep-copy with which I don't have the opportunity to check
which parts I do and which I do not want to copy, right?

Manuel Baehnisch

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.