gnome-doc-utils r1086 - in trunk: . xslt/docbook/common xslt/docbook/html



Author: shaunm
Date: Fri Feb 29 16:17:57 2008
New Revision: 1086
URL: http://svn.gnome.org/viewvc/gnome-doc-utils?rev=1086&view=rev

Log:
* xslt/docbook/html/db2xhtml.xsl:
* xslt/docbook/html/db2html.xsl:
* xslt/docbook/common/db-chunk.xsl:
- Add DOCTYPE to all the other pages made with exsl:document


Modified:
   trunk/ChangeLog
   trunk/xslt/docbook/common/db-chunk.xsl
   trunk/xslt/docbook/html/db2html.xsl
   trunk/xslt/docbook/html/db2xhtml.xsl

Modified: trunk/xslt/docbook/common/db-chunk.xsl
==============================================================================
--- trunk/xslt/docbook/common/db-chunk.xsl	(original)
+++ trunk/xslt/docbook/common/db-chunk.xsl	Fri Feb 29 16:17:57 2008
@@ -119,6 +119,24 @@
 </xsl:param>
 
 
+<!--@@==========================================================================
+db.chunk.doctype_public
+The public DOCTYPE for output files
+
+REMARK: Describe this
+-->
+<xsl:param name="db.chunk.doctype_public"/>
+
+
+<!--@@==========================================================================
+db.chunk.doctype_system
+The system DOCTYPE for output files
+
+REMARK: Describe this
+-->
+<xsl:param name="db.chunk.doctype_system"/>
+
+
 <!--**==========================================================================
 db.chunk
 Creates a new page of output
@@ -157,7 +175,9 @@
       <xsl:with-param name="node" select="$node"/>
     </xsl:call-template>
   </xsl:param>
-  <exsl:document href="{$href}">
+  <exsl:document href="{$href}"
+                 doctype-public="{$db.chunk.doctype_public}"
+                 doctype-system="{$db.chunk.doctype_system}">
     <xsl:call-template name="db.chunk.content">
       <xsl:with-param name="node" select="$node"/>
       <xsl:with-param name="template" select="$template"/>

Modified: trunk/xslt/docbook/html/db2html.xsl
==============================================================================
--- trunk/xslt/docbook/html/db2html.xsl	(original)
+++ trunk/xslt/docbook/html/db2html.xsl	Fri Feb 29 16:17:57 2008
@@ -22,10 +22,17 @@
 
 <xsl:import href="../../gettext/gettext.xsl"/>
 
+<!--#@ db.chunk.doctype_public -->
+<xsl:param name="db.chunk.doctype_public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
+
+<!--#@ db.chunk.doctype_system -->
+<xsl:param name="db.chunk.doctype_system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
+
 <xsl:output method="html"
             doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
             doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
 <xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default"/>
+
 <!--#@ db2html.namespace -->
 <xsl:param name="db2html.namespace" select="''"/>
 

Modified: trunk/xslt/docbook/html/db2xhtml.xsl
==============================================================================
--- trunk/xslt/docbook/html/db2xhtml.xsl	(original)
+++ trunk/xslt/docbook/html/db2xhtml.xsl	Fri Feb 29 16:17:57 2008
@@ -22,9 +22,16 @@
 
 <xsl:import href="../../gettext/gettext.xsl"/>
 
+<!--#@ db.chunk.doctype_public -->
+<xsl:param name="db.chunk.doctype_public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
+
+<!--#@ db.chunk.doctype_system -->
+<xsl:param name="db.chunk.doctype_system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
+
 <xsl:output method="html"
             doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
             doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+
 <!--#@ db2html.namespace -->
 <xsl:param name="db2html.namespace" select="'http://www.w3.org/1999/xhtml'"/>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]