]> granicus.if.org Git - docbook-dsssl/commitdiff
Feature ##469979 add xmlns for xhtml
authorNorman Walsh <ndw@nwalsh.com>
Tue, 4 Dec 2001 18:30:27 +0000 (18:30 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 4 Dec 2001 18:30:27 +0000 (18:30 +0000)
xsl/xhtml/docbook.xsl

index 7173324dbc4bb643d6e21e6a2dbfaab2c048e137..17f21f2ab6f953cd29e3ee9981d0f4cd156cd905 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version='1.0'?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                xmlns:mml="http://www.w3.org/1998/Math/MathML"
                 version='1.0'>
 
 <!-- ********************************************************************
             doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
             doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
 
-<xsl:template match="mml:*">
+<xsl:template match="*" mode="process.root">
+  <xsl:variable name="doc" select="self::*"/>
+  <html xmlns='http://www.w3.org/1999/xhtml'>
+  <head>
+    <xsl:call-template name="head.content">
+      <xsl:with-param name="node" select="$doc"/>
+    </xsl:call-template>
+    <xsl:call-template name="user.head.content">
+      <xsl:with-param name="node" select="$doc"/>
+    </xsl:call-template>
+  </head>
+  <body>
+    <xsl:call-template name="body.attributes"/>
+    <xsl:call-template name="user.header.content">
+      <xsl:with-param name="node" select="$doc"/>
+    </xsl:call-template>
+    <xsl:apply-templates select="."/>
+    <xsl:call-template name="user.footer.content">
+      <xsl:with-param name="node" select="$doc"/>
+    </xsl:call-template>
+  </body>
+  </html>
+</xsl:template>
+
+<xsl:template xmlns:mml="http://www.w3.org/1998/Math/MathML"
+              match="mml:*">
   <xsl:element name="{name(.)}">
     <xsl:copy-of select="@*"/>
     <xsl:apply-templates/>