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

RE: Xpath and copy-of

Subject: RE: Xpath and copy-of
From: Kevin Williams <Kevin.Williams@xxxxxxxxxxxxxx>
Date: Fri, 9 Jun 2000 10:44:25 -0400
xpath copy
> -----Original Message-----
> From: Carlos Sanchez [mailto:carlos@xxxxxxxx]
> 
> Has anyone run into trouble using copy-of using an Xpath 
> expression. I have
> used expressions such as
> 
> 	<xsl:copy-of select="child::.."/>

First of all, you can't use .. right after ::, as .. is a location path by
itself. The expression works as "child::*/..". Second, remember that each
step produces a node set; so basically what it looks like you're asking for
is "the node set consisting of all parents of all children of the current
node", which will always be (one copy, naturally) of the current node. What
output were you looking for?

- Kevin

Kevin Williams
XML Architect
Ultraprise Corporation


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.