]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix the output comments to indicate which stylesheet was used.
authorBob Stayton <bobs@sagehill.net>
Sat, 2 Jun 2012 19:30:54 +0000 (19:30 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 2 Jun 2012 19:30:54 +0000 (19:30 +0000)
xsl/xhtml5/xhtml2xhtml5.xsl

index 72a10160175d695813322cc25b6cf53051075f2a..05fe68d4543822b6804095bfdca7f8387def3aa5 100644 (file)
@@ -2,7 +2,7 @@
                 xmlns:xslo="http://www.w3.org/1999/XSL/TransformAlias"
                 version="1.0">
 
-<xsl:output indent="no"/>
+<xsl:output indent="no" method="xml"/>
 
 <xsl:namespace-alias stylesheet-prefix="xslo" result-prefix="xsl"/>
 
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="comment()
+             [starts-with(string(.), 'This file was created automatically')]">
+  <xsl:text>&#10;</xsl:text>
+  <xsl:comment>This file was created automatically by xhtml2xhtml5.xsl from the xhtml stylesheet.</xsl:comment>
+  <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="comment()
+             [starts-with(string(.), 'from the HTML stylesheets')]"/>
+
 <xsl:include href="../common/subtitles.xsl"/>
 </xsl:stylesheet>