]> granicus.if.org Git - docbook-dsssl/commitdiff
Added parameter for disabling HTML output when testing various HTML Help features.
authorJirka Kosek <jirka@kosek.cz>
Thu, 13 Jun 2002 18:20:36 +0000 (18:20 +0000)
committerJirka Kosek <jirka@kosek.cz>
Thu, 13 Jun 2002 18:20:36 +0000 (18:20 +0000)
xsl/html/Makefile.param
xsl/html/param.ent
xsl/html/param.xweb
xsl/htmlhelp/htmlhelp-common.xsl

index 22f5623b99086543c0c06e682b6b4bae29e278cf..a0d9a098141f1241cea2845af0c6a057eb2169ed 100644 (file)
@@ -83,6 +83,7 @@ PARAMS=../params/admon.graphics.xml \
        ../params/htmlhelp.hhp.tail.xml \
        ../params/htmlhelp.hhp.window.xml \
        ../params/htmlhelp.map.file.xml \
+       ../params/htmlhelp.only.xml \
        ../params/htmlhelp.title.xml \
        ../params/htmlhelp.show.menu.xml \
        ../params/htmlhelp.show.advanced.search.xml \
index d2ea01725f005f5b7af81252375b67e156be3419..3f1185f71daa72ab438c472949182d30d7688bf4 100644 (file)
@@ -83,6 +83,7 @@
 <!ENTITY htmlhelp.hhp.tail SYSTEM "../params/htmlhelp.hhp.tail.xml">
 <!ENTITY htmlhelp.hhp.window SYSTEM "../params/htmlhelp.hhp.window.xml">
 <!ENTITY htmlhelp.map.file SYSTEM "../params/htmlhelp.map.file.xml">
+<!ENTITY htmlhelp.only SYSTEM "../params/htmlhelp.only.xml">
 <!ENTITY htmlhelp.title SYSTEM "../params/htmlhelp.title.xml">
 <!ENTITY htmlhelp.show.menu SYSTEM "../params/htmlhelp.show.menu.xml">
 <!ENTITY htmlhelp.show.advanced.search SYSTEM "../params/htmlhelp.show.advanced.search.xml">
index ac36602add723cf225981d0d1b05cc8af543f579..61d47c553b779ccc4d2acbbc2ab18030486245e4 100644 (file)
@@ -325,6 +325,7 @@ url="http://docbook.sourceforge.net/projects/xsl/doc/tools/profiling.html">http:
 &htmlhelp.button.next;
 &htmlhelp.button.prev;
 &htmlhelp.button.zoom;
+&htmlhelp.only;
 </reference>
 
 <appendix><title>The Stylesheet</title>
@@ -449,6 +450,7 @@ around all these parameters.</para>
 <src:fragref linkend="htmlhelp.button.next.frag"/>
 <src:fragref linkend="htmlhelp.button.prev.frag"/>
 <src:fragref linkend="htmlhelp.button.zoom.frag"/>
+<src:fragref linkend="htmlhelp.only.frag"/>
 <src:fragref linkend="inherit.keywords.frag"/>
 <src:fragref linkend="label.from.part.frag"/>
 <src:fragref linkend="linenumbering.everyNth.frag"/>
index a86b70bee51bfb8d56f1d21b92a6448cba0acb2c..2b0e0fd8afa7f068278984c8d6795adfcfe968bc 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="/">
-  <xsl:choose>
-    <xsl:when test="$rootid != ''">
-      <xsl:choose>
-        <xsl:when test="count(key('id',$rootid)) = 0">
-          <xsl:message terminate="yes">
-            <xsl:text>ID '</xsl:text>
-            <xsl:value-of select="$rootid"/>
-            <xsl:text>' not found in document.</xsl:text>
-          </xsl:message>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message>
-          <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:apply-templates select="/" mode="process.root"/>
-    </xsl:otherwise>
-  </xsl:choose>
+  <xsl:if test="$htmlhelp.only != 1">
+    <xsl:choose>
+      <xsl:when test="$rootid != ''">
+        <xsl:choose>
+          <xsl:when test="count(key('id',$rootid)) = 0">
+            <xsl:message terminate="yes">
+              <xsl:text>ID '</xsl:text>
+              <xsl:value-of select="$rootid"/>
+              <xsl:text>' not found in document.</xsl:text>
+            </xsl:message>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message>
+            <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates select="/" mode="process.root"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:if>
 
   <xsl:call-template name="hhp"/>
   <xsl:call-template name="hhc"/>
@@ -171,6 +173,7 @@ Title=</xsl:text>
 
 <xsl:if test="$htmlhelp.hhp.window != ''">
   <xsl:text>
+
 [WINDOWS]
 </xsl:text>
 <xsl:value-of select="$htmlhelp.hhp.window"/>