]> granicus.if.org Git - docbook-dsssl/commitdiff
Set default values for chunker.output parameters so the
authorBob Stayton <bobs@sagehill.net>
Thu, 10 Jul 2003 06:36:50 +0000 (06:36 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 10 Jul 2003 06:36:50 +0000 (06:36 +0000)
chunk.xsl stylesheet outputs proper doctype declaration
for XHTML output.

xsl/xhtml/html2xhtml.xsl

index 4b0ca85bae92eb96936796ebb0715adce5e9ca94..2135a02c1c1afe0b2477c7608bdedf9f072bde44 100644 (file)
   </xsl:copy>
 </xsl:template>
 
+<xsl:template match="xsl:param[@name='chunker.output.encoding']">
+  <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:attribute name="select">'UTF-8'</xsl:attribute>
+  </xsl:copy>
+</xsl:template>
+
+<xsl:template match="xsl:param[@name='chunker.output.doctype-public']">
+  <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:attribute name="select">'-//W3C//DTD XHTML 1.0 Transitional//EN'</xsl:attribute>
+  </xsl:copy>
+</xsl:template>
+
+<xsl:template match="xsl:param[@name='chunker.output.doctype-system']">
+  <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:attribute name="select">'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'</xsl:attribute>
+  </xsl:copy>
+</xsl:template>
+
 <xsl:template match="xsl:attribute[@name='name']">
   <xsl:choose>
     <xsl:when test="ancestor::a">