]> granicus.if.org Git - docbook-dsssl/commitdiff
Address Bug #610660: Added system.head.content so that stylesheets can output things...
authorNorman Walsh <ndw@nwalsh.com>
Fri, 20 Sep 2002 11:12:43 +0000 (11:12 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 20 Sep 2002 11:12:43 +0000 (11:12 +0000)
xsl/html/docbook.xsl

index b2f5687c48a228cc6aad825a884f963a78c665b6..a26951f7edaee13d8bc6a3790cbb7dff3021cb0f 100644 (file)
 
 <xsl:template name="head.content">
   <xsl:param name="node" select="."/>
+  <xsl:param name="title">
+    <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
+  </xsl:param>
 
   <title>
-    <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
+    <xsl:copy-of select="$title"/>
   </title>
 
   <xsl:if test="$html.stylesheet != ''">
@@ -235,6 +238,17 @@ body { background-image: url('</xsl:text>
 
 <!-- ============================================================ -->
 
+<xsl:template name="system.head.content">
+  <xsl:param name="node" select="."/>
+
+  <!-- system.head.content is like user.head.content, except that
+       it is called before head.content. This is important because it
+       means, for example, that <style> elements output by system.head.content
+       have a lower CSS precedence than the users stylesheet. -->
+</xsl:template>
+
+<!-- ============================================================ -->
+
 <xsl:template name="user.head.content">
   <xsl:param name="node" select="."/>
 </xsl:template>
@@ -305,6 +319,9 @@ body { background-image: url('</xsl:text>
 
   <html>
     <head>
+      <xsl:call-template name="system.head.content">
+        <xsl:with-param name="node" select="$doc"/>
+      </xsl:call-template>
       <xsl:call-template name="head.content">
         <xsl:with-param name="node" select="$doc"/>
       </xsl:call-template>