RE: Xpath and copy-of
> -----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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format