Guest jay c Posted August 8, 2009 Share Posted August 8, 2009 I'm trying to pull the complete XML (structure and data) from my input file and put into a string....I am doing: <string><xsl:copy-of select="ancestor-or-self::node()"/></string>and it is not returning the complete structure.I first do a: <xsl:template match="/"> then: <xsl:copy-of select="ancestor-or-self::node()"/>and the input XML is 9 lines long and the output will be 8. The root tag is missing from the output.Why is my SELECT not returning the root node?Is there a better way to do what I'm trying to do?Thanks for any help...Jack Link to comment Share on other sites More sharing options...
boen_robot Posted August 8, 2009 Share Posted August 8, 2009 How about <xsl:copy-of select="/*"/> ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.