tektipsjunkie
Programmer
I am transforming an XML doc from Schema A to Schema B. These are two established standards, Schema A being newer. Schema A actually has more built in elements and can house more detailed information than Schema B, which is fine. THey try to describe the same thing. however, to not lose data I would like the copy the entire contents of the XML doc in Schema A format to an XML doc in schema B format, after the schema B requirements have been met in the translation. Meaning, I take Schema A info and format it for schema B info in the output, THEN take entire contents (xsl:copy-of select="$varRoot") of schema A place it in schema A format in the output doc, again after the schema B format. Clear as mud? When I did this, I obviously couldn't validate. So I want to comment out the schema A section of the output. How do I do this? I am using XSL:COPY-OF and it works but I would like to place it results in comments in the output. Everything I've tried has commented out the XSL:COPY-OF. Help.