]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug 955623: Added user.preroot placeholder template to permit xsl-stylesheet
authorBob Stayton <bobs@sagehill.net>
Fri, 13 Aug 2004 07:35:36 +0000 (07:35 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 13 Aug 2004 07:35:36 +0000 (07:35 +0000)
and other PIs and comments to be output before the HTML root element.

xsl/html/chunk-common.xsl
xsl/html/docbook.xsl
xsl/html/graphics.xsl
xsl/html/titlepage.xsl

index f67f3ed3774462cdc7b0314ff39702a4aca873a2..6748caaf0d712b9a278fed118073fa8587edbfb2 100644 (file)
     <xsl:apply-imports/>
   </xsl:param>
 
+  <xsl:call-template name="user.preroot"/>
+
   <html>
     <xsl:call-template name="html.head">
       <xsl:with-param name="prev" select="$prev"/>
index 789642e55e115d3fe51e4f3d469764df08b5ee3e..38f76f766656687dba9b5eca6dfb03abfa36c837 100644 (file)
@@ -262,6 +262,11 @@ body { background-image: url('</xsl:text>
 
 <!-- ============================================================ -->
 
+<xsl:template name="user.preroot">
+  <!-- Pre-root output, can be used to output comments and PIs. -->
+  <!-- This must not output any element content! -->
+</xsl:template>
+
 <xsl:template name="user.head.content">
   <xsl:param name="node" select="."/>
 </xsl:template>
@@ -343,6 +348,7 @@ body { background-image: url('</xsl:text>
 <xsl:template match="*" mode="process.root">
   <xsl:variable name="doc" select="self::*"/>
 
+  <xsl:call-template name="user.preroot"/>
   <xsl:call-template name="root.messages"/>
 
   <html>
index 4213a34c74900c60107d76502194b751df0426e0..ab09ed17f3d6fcda81ce5dcb55ae69e7fe18c757 100644 (file)
@@ -1014,6 +1014,7 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
       <xsl:with-param name="filename" select="$filename"/>
       <xsl:with-param name="quiet" select="$chunk.quietly"/>
       <xsl:with-param name="content">
+      <xsl:call-template name="user.preroot"/>
         <html>
           <head>
             <xsl:call-template name="system.head.content"/>
index e0e5f759483876623efb0f040c5f3e49274a5832..e9bbd35f2d551e32a8be0a2227aa840c7219cfdf 100644 (file)
         <xsl:with-param name="filename" select="$filename"/>
         <xsl:with-param name="quiet" select="$chunk.quietly"/>
         <xsl:with-param name="content">
+        <xsl:call-template name="user.preroot"/>
           <html>
             <head>
               <xsl:call-template name="system.head.content"/>