This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Xpath and copy-of


> -----Original Message-----
> From: Carlos Sanchez [mailto:carlos@ktsi.com]
> 
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]