]> granicus.if.org Git - docbook-dsssl/commitdiff
Aligned with changes made into xsl/htmlhelp/htmlhelp-common.xsl few months ago
authorJirka Kosek <jirka@kosek.cz>
Wed, 13 Sep 2006 10:52:48 +0000 (10:52 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 13 Sep 2006 10:52:48 +0000 (10:52 +0000)
slides/xsl/htmlhelp/htmlhelp.xsl

index 416df61dedb9f0500d32eade6434d41ddd1347a8..29f77542e02a246e32c119c7b81422dac51c9b04 100644 (file)
@@ -1,4 +1,7 @@
 <?xml version="1.0"?>
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY lf '<xsl:text xmlns:xsl="http://www.w3.org/1999/XSL/Transform">&#xA;</xsl:text>'>
+]>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
                 xmlns:exsl="http://exslt.org/common"
         <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
       </xsl:if>
     </xsl:if>
-    <xsl:call-template name="escape-attr">
-      <xsl:with-param name="value">
-        <xsl:apply-templates select="." mode="title.markup"/>
-      </xsl:with-param>
-    </xsl:call-template>
+    <xsl:apply-templates select="." mode="title.markup"/>
   </xsl:variable>
 
   <xsl:if test="$htmlhelp.hhc.show.root != 0 or parent::*">
-    <xsl:text disable-output-escaping="yes">&lt;LI&gt; &lt;OBJECT type="text/sitemap"&gt;
-      &lt;param name="Name" value="</xsl:text>
-          <xsl:value-of select="normalize-space($title)"/>
-      <xsl:text disable-output-escaping="yes">"&gt;
-      &lt;param name="Local" value="</xsl:text>
+    <LI><OBJECT type="text/sitemap">&lf;
+      <param name="Name" value="{normalize-space($title)}"/>&lf;
+      <param name="Local">
+       <xsl:attribute name="value">
           <xsl:apply-templates select="." mode="filename"/>
-      <xsl:text disable-output-escaping="yes">"&gt;
-    &lt;/OBJECT&gt;</xsl:text>
+       </xsl:attribute>
+      </param>
+    </OBJECT></LI>&lf;
   </xsl:if>
   <xsl:if test="foil|foilgroup">
-    <xsl:text disable-output-escaping="yes">&lt;UL&gt;</xsl:text>
+    <UL>&lf;
       <xsl:apply-templates select="foil|foilgroup" mode="hhc"/>
-    <xsl:text disable-output-escaping="yes">&lt;/UL&gt;</xsl:text>
+    </UL>&lf;
   </xsl:if>
 </xsl:template>
 
         <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
       </xsl:if>
     </xsl:if>
-    <xsl:call-template name="escape-attr">
-      <xsl:with-param name="value">
-        <xsl:apply-templates select="." mode="title.markup"/>
-      </xsl:with-param>
-    </xsl:call-template>
+    <xsl:apply-templates select="." mode="title.markup"/>
   </xsl:variable>
 
   <xsl:if test="$htmlhelp.hhc.show.root != 0 or parent::*">
-    <xsl:text disable-output-escaping="yes">&lt;LI&gt; &lt;OBJECT type="text/sitemap"&gt;
-      &lt;param name="Name" value="</xsl:text>
-          <xsl:value-of select="normalize-space($title)"/>
-      <xsl:text disable-output-escaping="yes">"&gt;
-      &lt;param name="Local" value="</xsl:text>
-          <xsl:apply-templates select="." mode="filename"/>
-      <xsl:text disable-output-escaping="yes">"&gt;
-    &lt;/OBJECT&gt;</xsl:text>
+    <LI><OBJECT type="text/sitemap">&lf;
+      <param name="Name" value="{normalize-space($title)}"/>&lf;
+      <param name="Local">
+       <xsl:attribute name="value">
+         <xsl:apply-templates select="." mode="filename"/>
+       </xsl:attribute>
+      </param>
+    </OBJECT></LI>&lf;
   </xsl:if>
 </xsl:template>