cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT issue: copy-of

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

moorthy
Active Contributor
0 Kudos

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