Jump to content

Select Copyy-of Question

Guest jay c

Recommended Posts

Guest jay c

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...