Dear all, I have problems transforming an XML document using XSLT. The <!DOCTYPE XYZ> and the root element <XZY> are not output when I use the following syntax:
<xsl:template match="/"> <xsl:copy> <xsl:apply-templates /> </xsl:copy></xsl:template>
So, instead I tried the following:
<xsl:template match="/"> <xsl:text disable-output-escaping="yes"> <!DOCTYPE XYZ> </xsl:text> <xsl:element name="XYZ"> <xsl:copy> <xsl:apply-templates /> </xsl:copy> </xsl:element></xsl:template>
This gives me the root element alright, but still won't output the DOCTYPE. Any idea what to improve?Cheers, Martin