on 06-13-2006 7:24 PM
Hi friends,
I'm now having an issue when using copy-of in XSLT:
I have a top node called PutXMLDocument, a second level node XMLString, and 3 level nodes in my xml. With a XSLT mapping, I'd like to move all contents of 3 level nodes into 2nd level node "XMLString". I know I should use copy-of command, but what select statement I shall use for this problem?
Or more simply: What's the XPATH expression for all descendant nodes of current node?
Any hints is highly appreciated.
Thanks
Luis
In my scenario, I actually had a node with name "XMLString", and want to concatenate all of its descendants into the value of "XMLString", so I used:
copy-of select="descentdant::XMLString", and this works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
<xsl:copy-of>Creates a copy of the current node (with child nodes and attributes)
Check this eg-
http://www.w3schools.com/xsl/el_copy-of.asp
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.