I´m trying to transform the whole input xml to a string in the output xml. And i´m almost there. I have manage to get all the content into the string element, but i´m missing the xml declaration. I need this because of the charset information.
Anyone have an idea on how to manage this?
I currently use this c# method to do the work:
public static string ConvertNodeToXmlString(XPathNodeIterator node)
{
node.MoveNext();
return node.Current.OuterXml;
}
and it´s called from xslt:
<xsl:variable name="result" xmlns:myScriptPrefix="http://HelperClass" select="myScriptPrefix:ConvertNodeToXmlString(.)" />
All help is much appreciated!