Hi:

xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Order PUBLIC "-//getstart DTD v1.0//EN" "getstart.dtd">


xslt:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet  version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
  <xsl:template match="/">
    <xsl:result-document
      doctype-public="{processing-instruction('doctype-public')}"
      doctype-system="{processing-instruction('doctype-system')}">
      <xsl:apply-templates/>
    </xsl:result-document>
  </xsl:template>
 
<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>

output file:
Will/should the DOCTYPE from original file exist in the output file after call to     net.sf.saxon.Transform on command line?


Thanks!