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

Current Thread