This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Xpath and copy-of
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Xpath and copy-of
- From: Kevin Williams <Kevin dot Williams at ultraprise dot com>
- Date: Fri, 9 Jun 2000 10:44:25 -0400
- Reply-To: xsl-list at mulberrytech dot com
> -----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