13 Shared

<..open xslt script..>
 <![CDATA[
    <xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    >
       <xsl:output omit-xml-declaration = "yes" />
-_-_-

<..close xslt script..>
       <xsl:template match="*|@*|text()|comment()" >
         <xsl:copy>
           <xsl:apply-templates select="*|@*|text()|comment()" />
         </xsl:copy>
       </xsl:template>
    </xsl:stylesheet>
 ]]>
-_-_-

<..get content template..>
 <xsl:template match="*" mode="content" >
   <xsl:choose>
      <xsl:when test=" @class = ’char’ " >
        <xsl:if test="not( child::*[
             (@class = ’ch 2032’) or (@class = ’ch 2033’)
                                  or (@class = ’ch 2034’)
        ] )">
          <xsl:text>x</xsl:text>
        </xsl:if>
      </xsl:when>
      <xsl:when test=" not(
             (@title = ’speech-extra’) or (@class = ’accent-char’)
          ) " >
        <xsl:apply-templates select="*|text()" mode="content" />
      </xsl:when>
   </xsl:choose>
 </xsl:template>
-_-_-

Can dom be prevented from creating an xml declaration in the output? The xslt part is there just to remove the undesirable declaration.

<..remove xml declaration..>
 <set name="rmXmlDecl" >
   <.open xslt script.>
   <.close xslt script.>
 </set>
 <xslt name="." xml="." xsl="rmXmlDecl" />
-_-_-