]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #425149, colphons and articles inside book are now handled
authorJirka Kosek <jirka@kosek.cz>
Sun, 20 May 2001 21:18:08 +0000 (21:18 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sun, 20 May 2001 21:18:08 +0000 (21:18 +0000)
xsl/javahelp/javahelp-common.xsl

index ee34095d2603622d839b02f282090f6db828259d..f4da8bf1cd2b8e06ad9442c35606b762f7a0ce8e 100644 (file)
@@ -1,5 +1,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-               version="1.0">
+                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+                exclude-result-prefixes="doc"          
+                version="1.0">
 
 <xsl:output method="html"/>
 
 
      ******************************************************************** -->
 
+<!-- ==================================================================== -->
+<xsl:param name="javahelp.encoding" select="'ISO-8859-1'"/>
+
+<doc:param name="javahelp.encoding" xmlns="">
+<refpurpose>Character encoding to use in control files for Java Help.</refpurpose>
+<refdescription>
+<para>Java Help crashes on some characters when written as character
+references. In that case you can select appropriate encoding here.</para>
+</refdescription>
+</doc:param>
+
 <!-- ==================================================================== -->
 
 <xsl:template match="/">
     <xsl:with-param name="indent" select="'yes'"/>
     <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN'"/>
     <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/toc_1_0.dtd'"/>
+    <xsl:with-param name="encoding" select="$javahelp.encoding"/>
     <xsl:with-param name="content">
       <xsl:call-template name="helptoc.content"/>
     </xsl:with-param>
     <xsl:attribute name="text">
       <xsl:value-of select="$title"/>
     </xsl:attribute>
-    <xsl:apply-templates select="part|reference|preface|chapter|appendix"
+    <xsl:apply-templates select="part|reference|preface|chapter|appendix|article|colophon"
                          mode="toc"/>
   </tocitem>
 </xsl:template>
 
-<xsl:template match="part|reference|preface|chapter|appendix"
+<xsl:template match="part|reference|preface|chapter|appendix|article"
               mode="toc">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
   </tocitem>
 </xsl:template>
 
-<xsl:template match="sect5" mode="toc">
+<xsl:template match="sect5|colophon" mode="toc">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
   </xsl:variable>
     <xsl:with-param name="indent" select="'yes'"/>
     <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN'"/>
     <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/map_1_0.dtd'"/>
+    <xsl:with-param name="encoding" select="$javahelp.encoding"/>
     <xsl:with-param name="content">
       <xsl:call-template name="helpmap.content"/>
     </xsl:with-param>
                                  | //preface
                                  | //chapter
                                  | //appendix
+                                 | //article
+                                 | //colophon
                                  | //refentry
                                  | //section
                                  | //sect1
   </mapID>
 </xsl:template>
 
-<xsl:template match="part|reference|preface|chapter|appendix"
+<xsl:template match="part|reference|preface|chapter|appendix|article"
               mode="map">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
   </mapID>
 </xsl:template>
 
-<xsl:template match="section|sect1|sect2|sect3|sect4|sect5" mode="map">
+<xsl:template match="section|sect1|sect2|sect3|sect4|sect5|colophon" mode="map">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>
   </xsl:variable>
     <xsl:with-param name="indent" select="'yes'"/>
     <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Index Version 1.0//EN'"/>
     <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/index_1_0.dtd'"/>
+    <xsl:with-param name="encoding" select="$javahelp.encoding"/>
     <xsl:with-param name="content">
       <xsl:call-template name="helpidx.content"/>
     </xsl:with-param>