diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2008-02-29 16:17:57 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2008-02-29 16:17:57 +0000 |
commit | 294bbf2bd01ef37aa4f6566b109801bc22aa1969 (patch) | |
tree | 4c2d8b7832deefe8f5deae8a7bc77b59fdda8802 | |
parent | 95de1fca2af308305da12d37ced947dbb8c8f0ff (diff) | |
download | gnome-doc-utils-294bbf2bd01ef37aa4f6566b109801bc22aa1969.tar.gz |
- Add DOCTYPE to all the other pages made with exsl:document
* 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
svn path=/trunk/; revision=1086
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | xslt/docbook/common/db-chunk.xsl | 22 | ||||
-rw-r--r-- | xslt/docbook/html/db2html.xsl | 7 | ||||
-rw-r--r-- | xslt/docbook/html/db2xhtml.xsl | 7 |
4 files changed, 42 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2008-02-29 Shaun McCance <shaunm@gnome.org> + + * 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 + 2008-02-12 Shaun McCance <shaunm@gnome.org> * xslt/docbook/html/db2html.xsl: diff --git a/xslt/docbook/common/db-chunk.xsl b/xslt/docbook/common/db-chunk.xsl index 8b159ea..36dde6e 100644 --- a/xslt/docbook/common/db-chunk.xsl +++ b/xslt/docbook/common/db-chunk.xsl @@ -119,6 +119,24 @@ REMARK: Describe what this does </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 @@ chunking mechanism without having to duplicate the content-generation code. <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"/> diff --git a/xslt/docbook/html/db2html.xsl b/xslt/docbook/html/db2html.xsl index 918bd1f..6a07ad5 100644 --- a/xslt/docbook/html/db2html.xsl +++ b/xslt/docbook/html/db2html.xsl @@ -22,10 +22,17 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA <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="''"/> diff --git a/xslt/docbook/html/db2xhtml.xsl b/xslt/docbook/html/db2xhtml.xsl index 7fa672d..629e415 100644 --- a/xslt/docbook/html/db2xhtml.xsl +++ b/xslt/docbook/html/db2xhtml.xsl @@ -22,9 +22,16 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA <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'"/> |