User: tobias  
  Date: 01/03/11 16:48:18

  Modified:    src/docs/docbook/html ChangeLog admon.xsl autotoc.xsl
                        biblio.xsl block.xsl callout.xsl chunk.xsl
                        component.xsl division.xsl docbook.xsl ebnf.xsl
                        footnote.xsl formal.xsl glossary.xsl graphics.xsl
                        html.xsl index.xsl info.xsl inline.xsl keywords.xsl
                        lists.xsl math.xsl param.xsl pi.xsl qandaset.xsl
                        refentry.xsl sections.xsl synop.xsl table.xsl
                        titlepage.templates.xml titlepage.templates.xsl
                        titlepage.xsl toc.xsl verbatim.xsl xref.xsl
  Log:
  updated to newest version (dbx130.zip) for better PDF support
  
  Revision  Changes    Path
  1.2       +119 -0    manual/src/docs/docbook/html/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/ChangeLog,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChangeLog 2001/02/11 00:05:15     1.1
  +++ ChangeLog 2001/03/12 00:48:12     1.2
  @@ -1,3 +1,122 @@
  +2001-03-09  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * chunk.xsl: Remove Xalan1 workaround because it crashes Xalan2
  +
  +     * xtdocbook.xsl, xtindex.xsl: New file.
  +
  +2001-02-27  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * callout.xsl, graphics.xsl, table.xsl, verbatim.xsl: Extension function 
changes
  +
  +     * param.xsl: Extension function changes and added Unicode callout support
  +
  +     * titlepage.xsl: Whitespace changes
  +
  +2001-02-26  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * autotoc.xsl: Add articles in divisions to the division TOC
  +
  +2001-02-19  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * autotoc.xsl: Put articles, bibliographys, glossarys, and appendixes in 
component TOCs
  +
  +     * callout.xsl, graphics.xsl, table.xsl, verbatim.xsl: Integrate all Saxon 
extensions into one namespace
  +
  +     * index.xsl: Fix typo and whitespace
  +
  +     * inline.xsl: Make sgmltag attributes monospace
  +
  +     * lists.xsl: Support compact itemizedlists; output anchors for callout lists
  +
  +     * param.xsl: Parameters for implementation-neutral extensions; just the 
beginnings of support...
  +
  +     * titlepage.xsl: Support conference stuff on titlepages; make releaseinfo a 
para instead of an inline.
  +
  +2001-01-30  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * autotoc.xsl: Added support for section TOCs and refentrys in components
  +
  +     * index.xsl: Proper support for grouping symbol entries in the index. Thanks 
again Jeni.
  +
  +     * lists.xsl: Added summary attribute to simplelist tables
  +
  +     * param.xsl, sections.xsl: Added support for section TOCs
  +
  +2001-01-28  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * autotoc.xsl, index.xsl: Support automatic indexing
  +
  +     * biblio.xsl: Support shortaffil and jobtitle in bibliomixed
  +
  +     * component.xsl: Allow anchors in component titles
  +
  +     * division.xsl: Support ToCs and PartIntros in References
  +
  +     * graphics.xsl: Process mediaobjectco and imageobjectco (just do the graphic, 
ignore the callouts)
  +
  +     * inline.xsl: Fix precedence bug processing of function params
  +
  +     * param.xsl: Added generate.reference.toc and generate.index
  +
  +     * refentry.xsl: Handle Reference ToC correctly
  +
  +     * sections.xsl: Allow anchors in section titles
  +
  +     * synop.xsl, verbatim.xsl: Handle synopsis as a proper verbatim environment
  +
  +2001-01-12  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * admon.xsl, param.xsl: Added admon.graphics.extension parameter
  +
  +     * docbook.xsl: (Attempt) to fix bug with root node context
  +
  +     * footnote.xsl: Improve handling of footnote links
  +
  +     * keywords.xsl: Make a single META header with a comma-delimited list of 
keywords, instead of a set of META headers
  +
  +     * table.xsl: Add anchors for ROW and ENTRY IDs
  +
  +2001-01-07  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * component.xsl, division.xsl, titlepage.templates.xml, titlepage.xsl: 
  +     Updated to use new parameters and new titlepage formatting
  +
  +     * param.xsl: Added new parameters for controlling TOCs
  +
  +     * titlepage.templates.xsl: Updated
  +
  +     * xref.xsl: Added support for xref to author
  +
  +2000-12-14  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * param.xsl: Added information about parameter types (for a future web-based 
customization tool); added new table parameters for Saxon tablecolumn extensions
  +
  +     * table.xsl: Added support for the Saxon (6-only) table column extension
  +
  +2000-11-29  Norman Walsh  <[EMAIL PROTECTED]>
  +
  +     * admon.xsl: Use PNGs for admonition graphics
  +
  +     * block.xsl: Hack for putting anchors in list items
  +
  +     * callout.xsl, graphics.xsl, verbatim.xsl: Updated to use Saxon 6 extensions
  +
  +     * docbook.xsl: Whitespace changes
  +
  +     * lists.xsl: Hack to fix anchors in list items
  +
  +     * param.xsl: Added stylesheet.result.type for the Saxon extensions
  +
  +     * pi.xsl: Only output the dbhtml PI if we're using.chunker
  +
  +     * sections.xsl: Remove IDs from divs; we also generate anchors and it's wrong 
to generate both with the same ID value
  +
  +     * table.xsl: Improve calculation of starting column number
  +
  +     * table.xsl: Support align on tgroup
  +
  +     * xref.xsl: Support bibliomixed
  +
   2000-11-17  Norman Walsh  <[EMAIL PROTECTED]>
   
        * block.xsl: Added template for highlights
  
  
  
  1.2       +8 -7      manual/src/docs/docbook/html/admon.xsl
  
  Index: admon.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/admon.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- admon.xsl 2001/02/11 00:05:15     1.1
  +++ admon.xsl 2001/03/12 00:48:12     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: admon.xsl,v 1.1 2001/02/11 00:05:15 tobias Exp $
  +     $Id: admon.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -32,13 +32,14 @@
     <xsl:param name="node" select="."/>
     <xsl:value-of select="$admon.graphics.path"/>
     <xsl:choose>
  -    <xsl:when test="name($node)='note'">note.gif</xsl:when>
  -    <xsl:when test="name($node)='warning'">warning.gif</xsl:when>
  -    <xsl:when test="name($node)='caution'">caution.gif</xsl:when>
  -    <xsl:when test="name($node)='tip'">tip.gif</xsl:when>
  -    <xsl:when test="name($node)='important'">important.gif</xsl:when>
  -    <xsl:otherwise>note.gif</xsl:otherwise>
  +    <xsl:when test="name($node)='note'">note</xsl:when>
  +    <xsl:when test="name($node)='warning'">warning</xsl:when>
  +    <xsl:when test="name($node)='caution'">caution</xsl:when>
  +    <xsl:when test="name($node)='tip'">tip</xsl:when>
  +    <xsl:when test="name($node)='important'">important</xsl:when>
  +    <xsl:otherwise>note</xsl:otherwise>
     </xsl:choose>
  +  <xsl:value-of select="$admon.graphics.extension"/>
   </xsl:template>
   
   <xsl:template name="graphical.admonition">
  
  
  
  1.2       +44 -5     manual/src/docs/docbook/html/autotoc.xsl
  
  Index: autotoc.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/autotoc.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- autotoc.xsl       2001/02/11 00:05:16     1.1
  +++ autotoc.xsl       2001/03/12 00:48:12     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: autotoc.xsl,v 1.1 2001/02/11 00:05:16 tobias Exp $
  +     $Id: autotoc.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -57,6 +57,7 @@
     <xsl:if test="$generate.division.toc != 0">
       <xsl:variable name="nodes" select="part|reference
                                          |preface|chapter|appendix
  +                                       |article
                                          |bibliography|glossary|index
                                          |refentry"/>
       <xsl:if test="$nodes">
  @@ -78,7 +79,9 @@
   
   <xsl:template name="component.toc">
     <xsl:if test="$generate.component.toc != 0">
  -    <xsl:variable name="nodes" select="section|sect1"/>
  +    <xsl:variable name="nodes" select="section|sect1|refentry
  +                                       |article|bibliography|glossary
  +                                       |appendix"/>
       <xsl:if test="$nodes">
         <div class="toc">
           <p>
  @@ -96,6 +99,24 @@
     </xsl:if>
   </xsl:template>
   
  +<xsl:template name="section.toc">
  +  <xsl:variable name="nodes" 
select="section|sect1|sect2|sect3|sect4|sect5|refentry"/>
  +  <xsl:if test="$nodes">
  +    <div class="toc">
  +      <p>
  +        <b>
  +          <xsl:call-template name="gentext.element.name">
  +            <xsl:with-param name="element.name">TableofContents</xsl:with-param>
  +          </xsl:call-template>
  +        </b>
  +      </p>
  +      <xsl:element name="{$toc.list.type}">
  +        <xsl:apply-templates select="$nodes" mode="toc"/>
  +      </xsl:element>
  +    </div>
  +  </xsl:if>
  +</xsl:template>
  +
   <!-- ==================================================================== -->
   
   <xsl:template match="book|setindex" mode="toc">
  @@ -411,7 +432,7 @@
     </xsl:if>
   </xsl:template>
   
  -<xsl:template match="bibliography|glossary|index"
  +<xsl:template match="bibliography|glossary"
                 mode="toc">
     <xsl:element name="{$toc.listitem.type}">
       <xsl:choose>
  @@ -430,8 +451,26 @@
     </xsl:element>
   </xsl:template>
   
  -<!-- If the index tag is empty, don't point at it from the TOC -->
  -<xsl:template match="index[not (*)]" mode="toc"/>
  +<xsl:template match="index" mode="toc">
  +  <!-- If the index tag is empty, don't point at it from the TOC -->
  +  <xsl:if test="* or $generate.index">
  +    <xsl:element name="{$toc.listitem.type}">
  +      <xsl:choose>
  +        <xsl:when test="title[1]">
  +          <xsl:apply-templates select="title[1]" mode="toc"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <a>
  +            <xsl:attribute name="href">
  +              <xsl:call-template name="href.target"/>
  +            </xsl:attribute>
  +            <xsl:call-template name="gentext.element.name"/>
  +          </a>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:element>
  +  </xsl:if>
  +</xsl:template>
   
   <xsl:template match="refentry" mode="toc">
     <xsl:variable name="refmeta" select=".//refmeta"/>
  
  
  
  1.2       +13 -1     manual/src/docs/docbook/html/biblio.xsl
  
  Index: biblio.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/biblio.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- biblio.xsl        2001/02/11 00:05:16     1.1
  +++ biblio.xsl        2001/03/12 00:48:12     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: biblio.xsl,v 1.1 2001/02/11 00:05:16 tobias Exp $
  +     $Id: biblio.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -621,6 +621,18 @@
   </xsl:template>
   
   <xsl:template match="affiliation" mode="bibliomixed.mode">
  +  <span class="{name(.)}">
  +    <xsl:apply-templates mode="bibliomixed.mode"/>
  +  </span>
  +</xsl:template>
  +
  +<xsl:template match="shortaffil" mode="bibliomixed.mode">
  +  <span class="{name(.)}">
  +    <xsl:apply-templates mode="bibliomixed.mode"/>
  +  </span>
  +</xsl:template>
  +
  +<xsl:template match="jobtitle" mode="bibliomixed.mode">
     <span class="{name(.)}">
       <xsl:apply-templates mode="bibliomixed.mode"/>
     </span>
  
  
  
  1.2       +11 -1     manual/src/docs/docbook/html/block.xsl
  
  Index: block.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/block.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- block.xsl 2001/02/11 00:05:16     1.1
  +++ block.xsl 2001/03/12 00:48:12     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: block.xsl,v 1.1 2001/02/11 00:05:16 tobias Exp $
  +     $Id: block.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -29,6 +29,16 @@
   
   <xsl:template match="para">
     <p>
  +    <xsl:if test="position() = 1 and parent::listitem">
  +      <a>
  +        <xsl:attribute name="name">
  +          <xsl:call-template name="object.id">
  +            <xsl:with-param name="object" select="parent::listitem"/>
  +          </xsl:call-template>
  +        </xsl:attribute>
  +      </a>
  +    </xsl:if>
  +
       <xsl:if test="@id">
         <a name="{@id}"/>
       </xsl:if>
  
  
  
  1.2       +31 -20    manual/src/docs/docbook/html/callout.xsl
  
  Index: callout.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/callout.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- callout.xsl       2001/02/11 00:05:16     1.1
  +++ callout.xsl       2001/03/12 00:48:12     1.2
  @@ -1,11 +1,13 @@
   <?xml version='1.0'?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -                xmlns:verb="com.nwalsh.saxon.Verbatim"
  -                exclude-result-prefixes="verb"
  +                xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
  +                xmlns:xverb="com.nwalsh.xalan.Verbatim"
  +                xmlns:lxslt="http://xml.apache.org/xslt"
  +                exclude-result-prefixes="sverb xverb lxslt"
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: callout.xsl,v 1.1 2001/02/11 00:05:16 tobias Exp $
  +     $Id: callout.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -14,43 +16,52 @@
   
        ******************************************************************** -->
   
  +<lxslt:component prefix="xverb"
  +                 functions="insertCallouts"/>
  +
   <xsl:template match="programlistingco|screenco">
     <xsl:variable name="verbatim" select="programlisting|screen"/>
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
   
     <xsl:choose>
  -    <xsl:when test="$saxon.extensions != '0'
  -                    and $saxon.callouts != '0'">
  +    <xsl:when test="$use.extensions != '0'
  +                    and $callouts.extension != '0'">
         <xsl:variable name="rtf">
           <xsl:apply-templates select="$verbatim">
             <xsl:with-param name="suppress-numbers" select="'1'"/>
           </xsl:apply-templates>
         </xsl:variable>
  +
         <xsl:variable name="rtf-with-callouts">
           <xsl:choose>
  -          <xsl:when test="$callout.graphics != 0">
  -            <xsl:copy-of select="verb:insertCallouts(areaspec,$rtf,
  -                                 $callout.defaultcolumn,
  -                                 $callout.graphics.path,
  -                                 $callout.graphics.extension,
  -                                 $callout.graphics.number.limit,
  -                                 false())"/>
  +          <xsl:when test="contains($vendor, 'SAXON ')">
  +            <xsl:copy-of select="sverb:insertCallouts(areaspec,$rtf)"/>
  +          </xsl:when>
  +          <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +            <xsl:copy-of select="xverb:insertCallouts(areaspec,$rtf)"/>
             </xsl:when>
             <xsl:otherwise>
  -            <xsl:copy-of select="verb:insertCallouts(areaspec,$rtf,
  -                                 $callout.defaultcolumn)"/>
  +            <xsl:message terminate="yes">
  +              <xsl:text>Don't know how to do callouts with </xsl:text>
  +              <xsl:value-of select="$vendor"/>
  +            </xsl:message>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:variable>
   
         <xsl:choose>
           <xsl:when test="$verbatim/@linenumbering = 'numbered'
  -                        and $saxon.extensions != '0'
  -                        and $saxon.linenumbering != '0'">
  +                        and $linenumbering.extension != '0'">
             <div class="{name(.)}">
  -            <xsl:copy-of select="verb:numberLines($rtf-with-callouts,
  -                                 $linenumbering.everyNth,
  -                                 $linenumbering.width,
  -                                 $linenumbering.separator)"/>
  +            <xsl:call-template name="number.rtf.lines">
  +              <xsl:with-param name="rtf" select="$rtf-with-callouts"/>
  +              <xsl:with-param name="linenumbering.everyNth"
  +                              select="$linenumbering.everyNth"/>
  +              <xsl:with-param name="linenumbering.width"
  +                              select="$linenumbering.width"/>
  +              <xsl:with-param name="linenumbering.separator"
  +                              select="$linenumbering.separator"/>
  +            </xsl:call-template>
               <xsl:apply-templates select="calloutlist"/>
             </div>
           </xsl:when>
  
  
  
  1.2       +0 -8      manual/src/docs/docbook/html/chunk.xsl
  
  Index: chunk.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/chunk.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- chunk.xsl 2001/02/11 00:05:17     1.1
  +++ chunk.xsl 2001/03/12 00:48:12     1.2
  @@ -12,14 +12,6 @@
   <xsl:include href="chunk-common.xsl"/>
   
   <!-- ==================================================================== -->
  -<!-- This is a workaround for a XalanJ1 bug in element-available. -->
  -
  -<lxslt:component prefix="xalanredirect" elements="write">
  -  <lxslt:script lang="javaclass"
  -                src="org.apache.xalan.xslt.extensions.Redirect"/>
  -</lxslt:component>
  -
  -<!-- ==================================================================== -->
   
   <xsl:template name="make-relative-filename">
     <xsl:param name="base.dir" select="'./'"/>
  
  
  
  1.2       +18 -12    manual/src/docs/docbook/html/component.xsl
  
  Index: component.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/component.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- component.xsl     2001/02/11 00:05:17     1.1
  +++ component.xsl     2001/03/12 00:48:12     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: component.xsl,v 1.1 2001/02/11 00:05:17 tobias Exp $
  +     $Id: component.xsl,v 1.2 2001/03/12 00:48:12 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -23,9 +23,10 @@
     </xsl:variable>
   
     <h2 class="title">
  -    <a name="{$id}">
  -      <xsl:apply-templates select="$node" mode="title.ref"/>
  -    </a>
  +    <a name="{$id}"/>
  +    <xsl:apply-templates select="$node" mode="title.ref">
  +      <xsl:with-param name="allow-anchors" select="'1'"/>
  +    </xsl:apply-templates>
     </h2>
   </xsl:template>
   
  @@ -52,10 +53,7 @@
   <xsl:template match="dedication" mode="dedication">
     <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     <div id="{$id}" class="{name(.)}">
  -    <xsl:call-template name="component.separator"/>
  -    <xsl:call-template name="component.title"/>
  -    <xsl:call-template name="component.subtitle"/>
  -
  +    <xsl:call-template name="dedication.titlepage"/>
       <xsl:apply-templates/>
       <xsl:call-template name="process.footnotes"/>
     </div>
  @@ -92,7 +90,9 @@
     <div id="{$id}" class="{name(.)}">
       <xsl:call-template name="component.separator"/>
       <xsl:call-template name="preface.titlepage"/>
  -    <xsl:call-template name="component.toc"/>
  +    <xsl:if test="$generate.preface.toc != '0'">
  +      <xsl:call-template name="component.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
       <xsl:call-template name="process.footnotes"/>
     </div>
  @@ -119,7 +119,9 @@
     <div id="{$id}" class="{name(.)}">
       <xsl:call-template name="component.separator"/>
       <xsl:call-template name="chapter.titlepage"/>
  -    <xsl:call-template name="component.toc"/>
  +    <xsl:if test="$generate.chapter.toc != '0'">
  +      <xsl:call-template name="component.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
       <xsl:call-template name="process.footnotes"/>
     </div>
  @@ -146,7 +148,9 @@
     <div id="{$id}" class="{name(.)}">
       <xsl:call-template name="component.separator"/>
       <xsl:call-template name="appendix.titlepage"/>
  -    <xsl:call-template name="component.toc"/>
  +    <xsl:if test="$generate.appendix.toc != '0'">
  +      <xsl:call-template name="component.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
       <xsl:call-template name="process.footnotes"/>
     </div>
  @@ -237,7 +241,9 @@
     <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     <div id="{$id}" class="{name(.)}">
       <xsl:call-template name="article.titlepage"/>
  -    <xsl:call-template name="component.toc"/>
  +    <xsl:if test="$generate.article.toc != '0'">
  +      <xsl:call-template name="component.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
       <xsl:call-template name="process.footnotes"/>
     </div>
  
  
  
  1.2       +23 -12    manual/src/docs/docbook/html/division.xsl
  
  Index: division.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/division.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- division.xsl      2001/02/11 00:05:17     1.1
  +++ division.xsl      2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: division.xsl,v 1.1 2001/02/11 00:05:17 tobias Exp $
  +     $Id: division.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -21,7 +21,9 @@
   
     <div class="{name(.)}" id="{$id}">
       <xsl:call-template name="set.titlepage"/>
  -    <xsl:call-template name="set.toc"/>
  +    <xsl:if test="$generate.set.toc != '0'">
  +      <xsl:call-template name="set.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -40,7 +42,9 @@
     <div class="{name(.)}" id="{$id}">
       <xsl:call-template name="book.titlepage"/>
       <xsl:apply-templates select="dedication" mode="dedication"/>
  -    <xsl:call-template name="division.toc"/>
  +    <xsl:if test="$generate.book.toc != '0'">
  +      <xsl:call-template name="division.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -58,26 +62,33 @@
   
     <div class="{name(.)}" id="{$id}">
       <xsl:call-template name="part.titlepage"/>
  -    <xsl:call-template name="division.toc"/>
  +    <xsl:if test="not(partintro) and $generate.part.toc != '0'">
  +      <xsl:call-template name="division.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
   
  +<xsl:template match="part" mode="make.part.toc">
  +  <xsl:call-template name="division.toc"/>
  +</xsl:template>
  +
  +<xsl:template match="reference" mode="make.part.toc">
  +  <xsl:call-template name="division.toc"/>
  +</xsl:template>
  +
   <xsl:template match="part/docinfo"></xsl:template>
   <xsl:template match="part/title"></xsl:template>
   <xsl:template match="part/subtitle"></xsl:template>
   
   <xsl:template match="partintro">
     <div class="{name(.)}">
  -    <xsl:if test="./title">
  -      <xsl:apply-templates select="./title" mode="partintro.title.mode"/>
  -    </xsl:if>
  -
  -    <xsl:if test="./subtitle">
  -      <xsl:apply-templates select="./subtitle" mode="partintro.title.mode"/>
  -    </xsl:if>
  -
  +    <xsl:call-template name="partintro.titlepage"/>
       <xsl:apply-templates/>
  +    <xsl:if test="$generate.part.toc != '0'">
  +      <!-- not ancestor::part because partintro appears in reference -->
  +      <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
  +    </xsl:if>
       <xsl:call-template name="process.footnotes"/>
     </div>
   </xsl:template>
  
  
  
  1.2       +10 -5     manual/src/docs/docbook/html/docbook.xsl
  
  Index: docbook.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/docbook.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- docbook.xsl       2001/02/11 00:05:17     1.1
  +++ docbook.xsl       2001/03/12 00:48:13     1.2
  @@ -9,7 +9,7 @@
               indent="no"/>
   
   <!-- ********************************************************************
  -     $Id: docbook.xsl,v 1.1 2001/02/11 00:05:17 tobias Exp $
  +     $Id: docbook.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -58,12 +58,17 @@
   <!-- ==================================================================== -->
   
   <xsl:template match="*">
  -  <xsl:message>No template matches <xsl:value-of select="name(.)"/>.</xsl:message>
  +  <xsl:message>
  +    <xsl:text>No template matches </xsl:text>
  +    <xsl:value-of select="name(.)"/>
  +    <xsl:text>.</xsl:text>
  +  </xsl:message>
  +
     <font color="red">
       <xsl:text>&lt;</xsl:text>
       <xsl:value-of select="name(.)"/>
       <xsl:text>&gt;</xsl:text>
  -    <xsl:apply-templates/> 
  +    <xsl:apply-templates/>
       <xsl:text>&lt;/</xsl:text>
       <xsl:value-of select="name(.)"/>
       <xsl:text>&gt;</xsl:text>
  @@ -71,7 +76,7 @@
   </xsl:template>
   
   <xsl:template match="text()">
  -  <xsl:value-of select="."/> 
  +  <xsl:value-of select="."/>
   </xsl:template>
   
   <xsl:template name="head.content">
  @@ -160,7 +165,7 @@
   </xsl:template>
   
   <xsl:template match="*" mode="process.root">
  -  <xsl:variable name="doc" select="/."/>
  +  <xsl:variable name="doc" select="self::*"/>
     <html>
     <head>
       <xsl:call-template name="head.content">
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/ebnf.xsl
  
  Index: ebnf.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/ebnf.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ebnf.xsl  2001/02/11 00:05:18     1.1
  +++ ebnf.xsl  2001/03/12 00:48:13     1.2
  @@ -5,7 +5,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: ebnf.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +     $Id: ebnf.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -17,7 +17,7 @@
   <doc:reference xmlns="">
   <referenceinfo>
   <releaseinfo role="meta">
  -$Id: ebnf.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +$Id: ebnf.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
   </releaseinfo>
   <author><surname>Walsh</surname>
   <firstname>Norman</firstname></author>
  
  
  
  1.2       +3 -3      manual/src/docs/docbook/html/footnote.xsl
  
  Index: footnote.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/footnote.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- footnote.xsl      2001/02/11 00:05:18     1.1
  +++ footnote.xsl      2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: footnote.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +     $Id: footnote.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -44,8 +44,8 @@
   </xsl:template>
   
   <xsl:template match="footnoteref">
  -  <xsl:variable name="footnote" select="id(@linkend)"/>
  -  <xsl:value-of select="name($footnote)"/>
  +  <xsl:variable name="targets" select="id(@linkend)"/>
  +  <xsl:variable name="footnote" select="$targets[1]"/>
     <xsl:variable name="href">
       <xsl:text>#ftn.</xsl:text>
       <xsl:call-template name="object.id">
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/formal.xsl
  
  Index: formal.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/formal.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- formal.xsl        2001/02/11 00:05:18     1.1
  +++ formal.xsl        2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: formal.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +     $Id: formal.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/glossary.xsl
  
  Index: glossary.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/glossary.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- glossary.xsl      2001/02/11 00:05:18     1.1
  +++ glossary.xsl      2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: glossary.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +     $Id: glossary.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +79 -73    manual/src/docs/docbook/html/graphics.xsl
  
  Index: graphics.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/graphics.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- graphics.xsl      2001/02/11 00:05:18     1.1
  +++ graphics.xsl      2001/03/12 00:48:13     1.2
  @@ -1,13 +1,15 @@
   <?xml version='1.0'?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns:xlink="http://www.w3.org/1999/xlink"
  -                xmlns:text="http://nwalsh.com/com.nwalsh.saxon.TextFactory"
  -                exclude-result-prefixes="xlink text"
  -                extension-element-prefixes="text"
  +                
xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory"
  +                xmlns:xtext="com.nwalsh.xalan.Text"
  +                xmlns:lxslt="http://xml.apache.org/xslt"
  +                exclude-result-prefixes="xlink stext xtext lxslt"
  +                extension-element-prefixes="stext xtext"
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: graphics.xsl,v 1.1 2001/02/11 00:05:18 tobias Exp $
  +     $Id: graphics.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -19,6 +21,9 @@
   
        ******************************************************************** -->
   
  +<lxslt:component prefix="xtext"
  +                 elements="insertfile"/>
  +
   <!-- ==================================================================== -->
   
   <xsl:template match="screenshot">
  @@ -40,40 +45,30 @@
     <xsl:param name="tag" select="'img'"/>
     <xsl:param name="alt"/>
   
  -  <xsl:variable name="input-filename">
  -    <xsl:choose>
  -      <xsl:when test="@entityref">
  -        <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
  -      </xsl:when>
  -      <xsl:when test="@fileref">
  -        <xsl:value-of select="@fileref"/>
  -      </xsl:when>
  -      <xsl:otherwise>
  -        <xsl:message>
  -          <xsl:text>Expected @entityref or @fileref on </xsl:text>
  -          <xsl:value-of select="name(.)"/>
  -        </xsl:message>
  -      </xsl:otherwise>
  -    </xsl:choose>
  -  </xsl:variable>
  -
  -  <xsl:variable name="fileext">
  -    <xsl:call-template name="filename-extension">
  -      <xsl:with-param name="filename" select="$input-filename"/>
  -    </xsl:call-template>
  -  </xsl:variable>
  -
     <xsl:variable name="filename">
       <xsl:choose>
  -      <xsl:when test="$fileext != ''">
  -        <xsl:value-of select="$input-filename"/>
  -      </xsl:when>
  -      <xsl:when test="$graphic.default.extension != ''">
  -        <xsl:value-of select="$input-filename"/>
  -        <xsl:value-of select="$graphic.default.extension"/>
  +      <xsl:when test="local-name(.) = 'graphic'
  +                      or local-name(.) = 'inlinegraphic'">
  +        <xsl:choose>
  +          <xsl:when test="@fileref">
  +            <xsl:value-of select="@fileref"/>
  +          </xsl:when>
  +          <xsl:when test="@entityref">
  +            <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
  +          </xsl:when>
  +          <xsl:otherwise>
  +            <xsl:message>
  +              <xsl:text>A fileref or entityref is required on </xsl:text>
  +              <xsl:value-of select="local-name(.)"/>
  +            </xsl:message>
  +          </xsl:otherwise>
  +        </xsl:choose>
         </xsl:when>
         <xsl:otherwise>
  -        <xsl:value-of select="$input-filename"/>
  +        <!-- imagedata, videodata, audiodata -->
  +        <xsl:call-template name="mediaobject.filename">
  +          <xsl:with-param name="object" select=".."/>
  +        </xsl:call-template>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
  @@ -135,35 +130,41 @@
   </xsl:template>
   
   <xsl:template match="inlinegraphic">
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  +  <xsl:variable name="filename">
  +    <xsl:choose>
  +      <xsl:when test="@entityref">
  +        <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:value-of select="@fileref"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:variable>
  +
     <xsl:choose>
       <xsl:when test="@format='linespecific'">
         <xsl:choose>
  -        <xsl:when test="$saxon.extensions != '0'
  -                        and $saxon.textinsert != '0'">
  +        <xsl:when test="$use.extensions != '0'
  +                        and $textinsert.extension != '0'">
             <xsl:choose>
  -            <xsl:when test="@entityref">
  -              <text:insertfile href="{unparsed-entity-uri(@entityref)}"/>
  +            <xsl:when test="contains($vendor, 'SAXON')">
  +              <stext:insertfile href="{$filename}"/>
               </xsl:when>
  +            <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +              <xtext:insertfile href="{$filename}"/>
  +            </xsl:when>
               <xsl:otherwise>
  -              <text:insertfile href="{@fileref}"/>
  +              <xsl:message terminate="yes">
  +                <xsl:text>Don't know how to insert files with </xsl:text>
  +                <xsl:value-of select="$vendor"/>
  +              </xsl:message>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:when>
           <xsl:otherwise>
  -          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad">
  -            <xsl:choose>
  -              <xsl:when test="@entityref">
  -                <xsl:attribute name="href">
  -                  <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
  -                </xsl:attribute>
  -              </xsl:when>
  -              <xsl:otherwise>
  -                <xsl:attribute name="href">
  -                  <xsl:value-of select="@fileref"/>
  -                </xsl:attribute>
  -              </xsl:otherwise>
  -            </xsl:choose>
  -          </a>
  +          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
  +             href="{$filename}"/>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
  @@ -175,7 +176,7 @@
   
   <!-- ==================================================================== -->
   
  -<xsl:template match="mediaobject">
  +<xsl:template match="mediaobject|mediaobjectco">
     <div class="{name(.)}">
       <xsl:call-template name="select.mediaobject"/>
       <xsl:apply-templates select="caption"/>
  @@ -190,40 +191,45 @@
   
   <!-- ==================================================================== -->
   
  +<xsl:template match="imageobjectco">
  +  <xsl:apply-templates select="imageobject"/>
  +</xsl:template>
  +
   <xsl:template match="imageobject">
     <xsl:apply-templates select="imagedata"/>
   </xsl:template>
   
   <xsl:template match="imagedata">
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  +  <xsl:variable name="filename">
  +    <xsl:call-template name="mediaobject.filename">
  +      <xsl:with-param name="object" select=".."/>
  +    </xsl:call-template>
  +  </xsl:variable>
  +
     <xsl:choose>
       <xsl:when test="@format='linespecific'">
         <xsl:choose>
  -        <xsl:when test="$saxon.extensions != '0'
  -                        and $saxon.textinsert != '0'">
  +        <xsl:when test="$use.extensions != '0'
  +                        and $textinsert.extension != '0'">
             <xsl:choose>
  -            <xsl:when test="@entityref">
  -              <text:insertfile href="{unparsed-entity-uri(@entityref)}"/>
  +            <xsl:when test="contains($vendor, 'SAXON')">
  +              <stext:insertfile href="{$filename}"/>
  +            </xsl:when>
  +            <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +              <xtext:insertfile href="{$filename}"/>
               </xsl:when>
               <xsl:otherwise>
  -              <text:insertfile href="{@fileref}"/>
  +              <xsl:message terminate="yes">
  +                <xsl:text>Don't know how to insert files with </xsl:text>
  +                <xsl:value-of select="$vendor"/>
  +              </xsl:message>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:when>
           <xsl:otherwise>
  -          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad">
  -            <xsl:choose>
  -              <xsl:when test="@entityref">
  -                <xsl:attribute name="href">
  -                  <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
  -                </xsl:attribute>
  -              </xsl:when>
  -              <xsl:otherwise>
  -                <xsl:attribute name="href">
  -                  <xsl:value-of select="@fileref"/>
  -                </xsl:attribute>
  -              </xsl:otherwise>
  -            </xsl:choose>
  -          </a>
  +          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
  +             href="{$filename}"/>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/html.xsl
  
  Index: html.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- html.xsl  2001/02/11 00:05:19     1.1
  +++ html.xsl  2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: html.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: html.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +392 -17   manual/src/docs/docbook/html/index.xsl
  
  Index: index.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/index.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xsl 2001/02/11 00:05:19     1.1
  +++ index.xsl 2001/03/12 00:48:13     1.2
  @@ -1,9 +1,41 @@
   <?xml version='1.0'?>
  +<!DOCTYPE xsl:stylesheet [
  +
  +<!ENTITY primary   'concat(primary/@sortas, primary[not(@sortas)])'>
  +<!ENTITY secondary 'concat(secondary/@sortas, secondary[not(@sortas)])'>
  +<!ENTITY tertiary  'concat(tertiary/@sortas, tertiary[not(@sortas)])'>
  +
  +<!ENTITY section   '(ancestor-or-self::set
  +                     |ancestor-or-self::book
  +                     |ancestor-or-self::part
  +                     |ancestor-or-self::reference
  +                     |ancestor-or-self::partintro
  +                     |ancestor-or-self::chapter
  +                     |ancestor-or-self::appendix
  +                     |ancestor-or-self::preface
  +                     |ancestor-or-self::section
  +                     |ancestor-or-self::sect1
  +                     |ancestor-or-self::sect2
  +                     |ancestor-or-self::sect3
  +                     |ancestor-or-self::sect4
  +                     |ancestor-or-self::sect5
  +                     |ancestor-or-self::refsect1
  +                     |ancestor-or-self::refsect2
  +                     |ancestor-or-self::refsect3
  +                     |ancestor-or-self::simplesect
  +                     |ancestor-or-self::bibliography
  +                     |ancestor-or-self::glossary
  +                     |ancestor-or-self::index)[last()]'>
  +
  +<!ENTITY section.id 'generate-id(&section;)'>
  +<!ENTITY sep '" "'>
  +]>
  +
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: index.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: index.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -18,22 +50,23 @@
     <!-- some implementations use completely empty index tags to indicate -->
     <!-- where an automatically generated index should be inserted. so -->
     <!-- if the index is completely empty, skip it. -->
  -  <xsl:if test="count(*)>0">
  +
  +  <xsl:if test="count(*)>0 or $generate.index != '0'">
       <div class="{name(.)}">
         <xsl:call-template name="component.separator"/>
         <xsl:choose>
           <xsl:when test="./title">
  -        <xsl:apply-templates select="./title" mode="component.title.mode"/>
  -      </xsl:when>
  -      <xsl:otherwise>
  -        <h2 class="title">
  -          <a>
  -            <xsl:attribute name="name">
  -              <xsl:call-template name="object.id"/>
  -            </xsl:attribute>
  -            <xsl:call-template name="gentext.element.name"/>
  -          </a>
  -        </h2>
  +          <xsl:apply-templates select="./title" mode="component.title.mode"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <h2 class="title">
  +            <a>
  +              <xsl:attribute name="name">
  +                <xsl:call-template name="object.id"/>
  +              </xsl:attribute>
  +              <xsl:call-template name="gentext.element.name"/>
  +            </a>
  +          </h2>
           </xsl:otherwise>
         </xsl:choose>
   
  @@ -42,6 +75,11 @@
         </xsl:if>
   
         <xsl:apply-templates/>
  +
  +      <xsl:if test="count(indexentry) = 0 and count(indexdiv) = 0">
  +        <xsl:call-template name="generate-index"/>
  +      </xsl:if>
  +
         <xsl:call-template name="process.footnotes"/>
       </div>
     </xsl:if>
  @@ -74,10 +112,17 @@
   
   <xsl:template match="indexdiv">
     <div class="{name(.)}">
  -    <xsl:apply-templates/>
  +    <xsl:apply-templates mode="not-indexentrys"/>
  +    <dl>
  +      <xsl:apply-templates select="indexentry"/>
  +    </dl>
     </div>
   </xsl:template>
   
  +<xsl:template match="indexentry" mode="not-indexentrys">
  +  <!-- suppress -->
  +</xsl:template>
  +
   <xsl:template match="indexdiv/title">
     <xsl:variable name="id">
       <xsl:call-template name="object.id">
  @@ -92,13 +137,343 @@
   </xsl:template>
   
   <!-- ==================================================================== -->
  +
  +<xsl:template match="indexterm">
  +  <xsl:variable name="id">
  +    <xsl:call-template name="object.id"/>
  +  </xsl:variable>
  +
  +  <a class="indexterm" name="{$id}"/>
  +</xsl:template>
   
  -<xsl:template match="indexterm"></xsl:template>
   <xsl:template match="primary|secondary|tertiary|see|seealso">
   </xsl:template>
  +
  +<!-- ==================================================================== -->
  +
  +<xsl:template match="indexentry">
  +  <xsl:apply-templates select="primaryie"/>
  +</xsl:template>
  +
  +<xsl:template match="primaryie">
  +  <dt>
  +    <xsl:apply-templates/>
  +  </dt>
  +  <xsl:choose>
  +    <xsl:when test="following-sibling::secondaryie">
  +      <dd>
  +        <dl>
  +          <xsl:apply-templates select="following-sibling::secondaryie"/>
  +        </dl>
  +      </dd>
  +    </xsl:when>
  +    <xsl:when test="following-sibling::seeie
  +                    |following-sibling::seealsoie">
  +      <dd>
  +        <dl>
  +          <xsl:apply-templates select="following-sibling::seeie
  +                                       |following-sibling::seealsoie"/>
  +        </dl>
  +      </dd>
  +    </xsl:when>
  +  </xsl:choose>
  +</xsl:template>
  +
  +<xsl:template match="secondaryie">
  +  <dt>
  +    <xsl:apply-templates/>
  +  </dt>
  +  <xsl:choose>
  +    <xsl:when test="following-sibling::tertiaryie">
  +      <dd>
  +        <dl>
  +          <xsl:apply-templates select="following-sibling::tertiaryie"/>
  +        </dl>
  +      </dd>
  +    </xsl:when>
  +    <xsl:when test="following-sibling::seeie
  +                    |following-sibling::seealsoie">
  +      <dd>
  +        <dl>
  +          <xsl:apply-templates select="following-sibling::seeie
  +                                       |following-sibling::seealsoie"/>
  +        </dl>
  +      </dd>
  +    </xsl:when>
  +  </xsl:choose>
  +</xsl:template>
  +
  +<xsl:template match="tertiaryie">
  +  <dt>
  +    <xsl:apply-templates/>
  +  </dt>
  +  <xsl:if test="following-sibling::seeie
  +                |following-sibling::seealsoie">
  +    <dd>
  +      <dl>
  +        <xsl:apply-templates select="following-sibling::seeie
  +                                     |following-sibling::seealsoie"/>
  +      </dl>
  +    </dd>
  +  </xsl:if>
  +</xsl:template>
  +
  +<xsl:template match="seeie|seealsoie">
  +  <dt>
  +    <xsl:apply-templates/>
  +  </dt>
  +</xsl:template>
  +
  +<!-- ==================================================================== -->
  +<!-- Jeni Tennison gets all the credit for what follows.
  +     I think I understand it :-) Anyway, I've hacked it a bit, so the
  +     bugs are mine. -->
  +
  +<xsl:key name="letter"
  +         match="indexterm"
  +         use="substring(&primary;, 1, 1)"/>
  +
  +<xsl:key name="primary"
  +         match="indexterm"
  +         use="&primary;"/>
  +
  +<xsl:key name="secondary"
  +         match="indexterm"
  +         use="concat(&primary;, &sep;, &secondary;)"/>
  +
  +<xsl:key name="tertiary"
  +         match="indexterm"
  +         use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;)"/>
  +
  +<xsl:key name="primary-section"
  +         match="indexterm[not(secondary) and not(see)]"
  +         use="concat(&primary;, &sep;, &section.id;)"/>
  +
  +<xsl:key name="secondary-section"
  +         match="indexterm[not(tertiary) and not(see)]"
  +         use="concat(&primary;, &sep;, &secondary;, &sep;, &section.id;)"/>
  +
  +<xsl:key name="tertiary-section"
  +         match="indexterm[not(see)]"
  +         use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, 
&section.id;)"/>
  +
  +<xsl:key name="see-also"
  +         match="indexterm[seealso]"
  +         use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, 
seealso)"/>
  +
  +<xsl:key name="see"
  +         match="indexterm[see]"
  +         use="concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, 
see)"/>
  +
  +<xsl:key name="sections" match="*[@id]" use="@id"/>
  +
  +<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
  +<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
  +
  +<xsl:template name="generate-index">
  +  <xsl:variable name="terms" select="//indexterm[count(.|key('letter',
  +                                     substring(&primary;, 1, 1))[1]) = 1]"/>
  +  <xsl:variable name="alphabetical"
  +                select="$terms[contains(concat($lowercase, $uppercase),
  +                                        substring(&primary;, 1, 1))]"/>
  +  <xsl:variable name="others" select="$terms[not(contains(concat($lowercase,
  +                                                 $uppercase),
  +                                             substring(&primary;, 1, 1)))]"/>
  +  <div class="index">
  +    <xsl:if test="$others">
  +      <div class="indexdiv">
  +        <h3>
  +          <xsl:call-template name="gentext">
  +            <xsl:with-param name="key" select="'index symbols'"/>
  +          </xsl:call-template>
  +        </h3>
  +        <dl>
  +          <xsl:apply-templates select="$others[count(.|key('primary',
  +                                       &primary;)[1]) = 1]"
  +                               mode="index-primary">
  +            <xsl:sort select="&primary;"/>
  +          </xsl:apply-templates>
  +        </dl>
  +      </div>
  +    </xsl:if>
  +    <xsl:apply-templates select="$alphabetical[count(.|key('letter',
  +                                 substring(&primary;, 1, 1))[1]) = 1]"
  +                         mode="index-div">
  +      <xsl:sort select="&primary;"/>
  +    </xsl:apply-templates>
  +  </div>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-div">
  +  <xsl:variable name="key" select="substring(&primary;, 1, 1)"/>
  +  <div class="indexdiv">
  +    <h3>
  +      <xsl:value-of select="translate($key, $lowercase, $uppercase)"/>
  +    </h3>
  +    <dl>
  +      <xsl:apply-templates select="key('letter', $key)[count(.|key('primary', 
&primary;)[1]) = 1]"
  +                           mode="index-primary">
  +        <xsl:sort select="&primary;"/>
  +      </xsl:apply-templates>
  +    </dl>
  +  </div>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-primary">
  +  <xsl:variable name="key" select="&primary;"/>
  +  <xsl:variable name="refs" select="key('primary', $key)"/>
  +  <dt>
  +    <xsl:value-of select="primary"/>
  +    <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section', 
concat($key, &sep;, &section.id;))[1])]">
  +      <xsl:apply-templates select="." mode="reference"/>
  +    </xsl:for-each>
  +  </dt>
  +  <xsl:if test="$refs/secondary or $refs[not(secondary)]/*[self::see or 
self::seealso]">
  +    <dd>
  +      <dl>
  +        <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', 
concat(&primary;, &sep;, &sep;, &sep;, see))[1])]"
  +                             mode="index-see">
  +          <xsl:sort select="see"/>
  +        </xsl:apply-templates>
  +        <xsl:apply-templates select="$refs[generate-id() = 
generate-id(key('see-also', concat(&primary;, &sep;, &sep;, &sep;, seealso))[1])]"
  +                             mode="index-seealso">
  +          <xsl:sort select="seealso"/>
  +        </xsl:apply-templates>
  +        <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', 
concat($key, &sep;, &secondary;))[1]) = 1]" 
  +                             mode="index-secondary">
  +          <xsl:sort select="&secondary;"/>
  +        </xsl:apply-templates>
  +      </dl>
  +    </dd>
  +  </xsl:if>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-secondary">
  +  <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
  +  <xsl:variable name="refs" select="key('secondary', $key)"/>
  +  <dt>
  +    <xsl:value-of select="secondary"/>
  +    <xsl:for-each select="$refs[generate-id() = 
generate-id(key('secondary-section', concat($key, &sep;, &section.id;))[1])]">
  +      <xsl:apply-templates select="." mode="reference"/>
  +    </xsl:for-each>
  +  </dt>
  +  <xsl:if test="$refs/tertiary or $refs[not(tertiary)]/*[self::see or 
self::seealso]">
  +    <dd>
  +      <dl>
  +        <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', 
concat(&primary;, &sep;, &secondary;, &sep;, &sep;, see))[1])]"
  +                             mode="index-see">
  +          <xsl:sort select="see"/>
  +        </xsl:apply-templates>
  +        <xsl:apply-templates select="$refs[generate-id() = 
generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &sep;, 
seealso))[1])]"
  +                             mode="index-seealso">
  +          <xsl:sort select="seealso"/>
  +        </xsl:apply-templates>
  +        <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', 
concat($key, &sep;, &tertiary;))[1]) = 1]" 
  +                             mode="index-tertiary">
  +          <xsl:sort select="&tertiary;"/>
  +        </xsl:apply-templates>
  +      </dl>
  +    </dd>
  +  </xsl:if>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-tertiary">
  +  <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;, &sep;, 
&tertiary;)"/>
  +  <xsl:variable name="refs" select="key('tertiary', $key)"/>
  +  <dt>
  +    <xsl:value-of select="tertiary"/>
  +    <xsl:for-each select="$refs[generate-id() = generate-id(key('tertiary-section', 
concat($key, &sep;, &section.id;))[1])]">
  +      <xsl:apply-templates select="." mode="reference"/>
  +    </xsl:for-each>
  +  </dt>
  +  <xsl:variable name="see" select="$refs/see | $refs/seealso"/>
  +  <xsl:if test="$see">
  +    <dd>
  +      <dl>
  +        <xsl:apply-templates select="$refs[generate-id() = generate-id(key('see', 
concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, &sep;, see))[1])]"
  +                             mode="index-see">
  +          <xsl:sort select="see"/>
  +        </xsl:apply-templates>
  +        <xsl:apply-templates select="$refs[generate-id() = 
generate-id(key('see-also', concat(&primary;, &sep;, &secondary;, &sep;, &tertiary;, 
&sep;, seealso))[1])]"
  +                             mode="index-seealso">
  +          <xsl:sort select="seealso"/>
  +        </xsl:apply-templates>
  +      </dl>
  +    </dd>
  +  </xsl:if>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="reference">
  +  <xsl:text>, </xsl:text>
  +  <xsl:choose>
  +    <xsl:when test="@zone and string(@zone)">
  +      <xsl:call-template name="reference">
  +        <xsl:with-param name="zones" select="normalize-space(@zone)"/>
  +      </xsl:call-template>
  +    </xsl:when>
  +    <xsl:otherwise>
  +      <a>
  +        <xsl:attribute name="href">
  +          <xsl:call-template name="href.target">
  +            <xsl:with-param name="object" select="&section;"/>
  +          </xsl:call-template>
  +        </xsl:attribute>
  +        <xsl:apply-templates select="&section;" mode="title.content">
  +          <xsl:with-param name="text-only" select="'1'"/>
  +        </xsl:apply-templates>
  +      </a>
  +    </xsl:otherwise>
  +  </xsl:choose>
  +</xsl:template>
  +
  +<xsl:template name="reference">
  +  <xsl:param name="zones"/>
  +  <xsl:choose>
  +    <xsl:when test="contains($zones, ' ')">
  +      <xsl:variable name="zone" select="substring-before($zones, ' ')"/>
  +      <xsl:variable name="target" select="key('sections', $zone)"/>
  +
  +      <a>
  +        <xsl:attribute name="href">
  +          <xsl:call-template name="href.target">
  +            <xsl:with-param name="object" select="$target[1]"/>
  +          </xsl:call-template>
  +        </xsl:attribute>
  +        <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
  +      </a>
  +      <xsl:text>, </xsl:text>
  +      <xsl:call-template name="reference">
  +        <xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
  +      </xsl:call-template>
  +    </xsl:when>
  +    <xsl:otherwise>
  +      <xsl:variable name="zone" select="$zones"/>
  +      <xsl:variable name="target" select="key('sections', $zone)"/>
  +
  +      <a>
  +        <xsl:attribute name="href">
  +          <xsl:call-template name="href.target">
  +            <xsl:with-param name="object" select="$target[1]"/>
  +          </xsl:call-template>
  +        </xsl:attribute>
  +        <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
  +      </a>
  +    </xsl:otherwise>
  +  </xsl:choose>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-see">
  +   <dt><xsl:value-of select="see"/></dt>
  +</xsl:template>
  +
  +<xsl:template match="indexterm" mode="index-seealso">
  +   <dt><xsl:value-of select="seealso"/></dt>
  +</xsl:template>
   
  -<xsl:template match="indexentry"></xsl:template>
  -<xsl:template match="primaryie|secondaryie|tertiaryie|seeie|seealsoie">
  +<xsl:template match="*" mode="index-title-content">
  +  <xsl:apply-templates select="&section;" mode="title.content">
  +    <xsl:with-param name="text-only" select="'1'"/>
  +  </xsl:apply-templates>
   </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/info.xsl
  
  Index: info.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/info.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- info.xsl  2001/02/11 00:05:19     1.1
  +++ info.xsl  2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: info.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: info.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +3 -3      manual/src/docs/docbook/html/inline.xsl
  
  Index: inline.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/inline.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- inline.xsl        2001/02/11 00:05:19     1.1
  +++ inline.xsl        2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: inline.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: inline.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -204,7 +204,7 @@
   <xsl:template match="function">
     <xsl:choose>
       <xsl:when test="$function.parens != '0'
  -                    or parameter or function or replaceable">
  +                    and (parameter or function or replaceable)">
         <xsl:variable name="nodes" select="text()|*"/>
         <xsl:call-template name="inline.monoseq">
           <xsl:with-param name="content">
  @@ -463,7 +463,7 @@
   
     <xsl:choose>
       <xsl:when test="$class='attribute'">
  -      <xsl:call-template name="inline.charseq"/>
  +      <xsl:call-template name="inline.monoseq"/>
       </xsl:when>
       <xsl:when test="$class='attvalue'">
         <xsl:call-template name="inline.monoseq"/>
  
  
  
  1.2       +12 -4     manual/src/docs/docbook/html/keywords.xsl
  
  Index: keywords.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/keywords.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- keywords.xsl      2001/02/11 00:05:19     1.1
  +++ keywords.xsl      2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: keywords.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: keywords.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -18,11 +18,19 @@
   <!-- ==================================================================== -->
   
   <xsl:template match="keywordset" mode="html.header">
  -  <xsl:apply-templates mode="html.header"/>
  +  <meta name="keywords">
  +    <xsl:attribute name="content">
  +      <xsl:apply-templates select="keyword" mode="html.header"/>
  +    </xsl:attribute>
  +  </meta>
   </xsl:template>
   
  -<xsl:template match="keyword" mode="html.header">
  -  <meta name="keyword" content="{.}"/>
  +<xsl:template match="keyword[position()!=last()]" mode="html.header">
  +  <xsl:apply-templates/><xsl:text>, </xsl:text>
  +</xsl:template>
  +
  +<xsl:template match="keyword[position()=last()]" mode="html.header">
  +  <xsl:apply-templates/>
   </xsl:template>
   
   <!-- ==================================================================== -->
  
  
  
  1.2       +31 -8     manual/src/docs/docbook/html/lists.xsl
  
  Index: lists.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/lists.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- lists.xsl 2001/02/11 00:05:19     1.1
  +++ lists.xsl 2001/03/12 00:48:13     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: lists.xsl,v 1.1 2001/02/11 00:05:19 tobias Exp $
  +     $Id: lists.xsl,v 1.2 2001/03/12 00:48:13 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -20,7 +20,12 @@
         <xsl:apply-templates select="title"/>
       </xsl:if>
       <ul>
  -    <xsl:apply-templates select="listitem"/>
  +      <xsl:if test="@spacing='compact'">
  +        <xsl:attribute name="compact">
  +          <xsl:value-of select="compact"/>
  +        </xsl:attribute>
  +      </xsl:if>
  +      <xsl:apply-templates select="listitem"/>
       </ul>
     </div>
   </xsl:template>
  @@ -161,7 +166,13 @@
         </xsl:attribute>
       </xsl:if>
   
  -    <a name="{$id}"/>
  +    <!-- we can't just drop the anchor in since some browsers (Opera)
  +         get confused about line breaks if we do. So if the first child
  +         is a para, assume the para will put in the anchor. Otherwise,
  +         put the anchor in anyway. -->
  +    <xsl:if test="local-name(child::*[1]) != 'para'">
  +      <a name="{$id}"/>
  +    </xsl:if>
   
       <xsl:choose>
         <xsl:when test="$show.revisionflag and @revisionflag">
  @@ -214,7 +225,7 @@
   
   <xsl:template match="simplelist">
     <!-- with no type specified, the default is 'vert' -->
  -  <table class="simplelist" border="0">
  +  <table class="simplelist" border="0" summary="Simple list">
       <xsl:call-template name="simplelist.vert">
         <xsl:with-param name="cols">
        <xsl:choose>
  @@ -233,7 +244,7 @@
   </xsl:template>
   
   <xsl:template match="simplelist[@type='horiz']">
  -  <table class="simplelist" border="0">
  +  <table class="simplelist" border="0" summary="Simple list">
       <xsl:call-template name="simplelist.horiz">
         <xsl:with-param name="cols">
           <xsl:choose>
  @@ -248,7 +259,7 @@
   </xsl:template>
   
   <xsl:template match="simplelist[@type='vert']">
  -  <table class="simplelist" border="0">
  +  <table class="simplelist" border="0" summary="Simple list">
       <xsl:call-template name="simplelist.vert">
         <xsl:with-param name="cols">
           <xsl:choose>
  @@ -469,7 +480,11 @@
   <!-- ==================================================================== -->
   
   <xsl:template match="calloutlist">
  +  <xsl:variable name="id">
  +    <xsl:call-template name="object.id"/>
  +  </xsl:variable>
     <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:if test="./title">
         <p>
           <b>
  @@ -498,10 +513,14 @@
   </xsl:template>
   
   <xsl:template match="callout">
  +  <xsl:variable name="id">
  +    <xsl:call-template name="object.id"/>
  +  </xsl:variable>
     <xsl:choose>
       <xsl:when test="$callout.list.table != 0">
         <tr>
           <td width="5%" valign="top" align="left">
  +          <a name="{$id}"/>
             <xsl:call-template name="callout.arearefs">
               <xsl:with-param name="arearefs" select="@arearefs"/>
             </xsl:call-template>
  @@ -513,6 +532,7 @@
       </xsl:when>
       <xsl:otherwise>
         <dt>
  +        <a name="{$id}"/>
           <xsl:call-template name="callout.arearefs">
             <xsl:with-param name="arearefs" select="@arearefs"/>
           </xsl:call-template>
  @@ -550,10 +570,13 @@
     <xsl:variable name="targets" select="id($arearef)"/>
     <xsl:variable name="target" select="$targets[1]"/>
   
  +  <xsl:call-template name="check.id.unique">
  +    <xsl:with-param name="linkend" select="$arearef"/>
  +  </xsl:call-template>
  +
     <xsl:choose>
       <xsl:when test="count($target)=0">
  -      <xsl:value-of select="$arearef"/>
  -      <xsl:text>: ???</xsl:text>
  +      <xsl:text>???</xsl:text>
       </xsl:when>
       <xsl:when test="local-name($target)='co'">
         <a>
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/math.xsl
  
  Index: math.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/math.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- math.xsl  2001/02/11 00:05:20     1.1
  +++ math.xsl  2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: math.xsl,v 1.1 2001/02/11 00:05:20 tobias Exp $
  +     $Id: math.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.4       +331 -60   manual/src/docs/docbook/html/param.xsl
  
  Index: param.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/param.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- param.xsl 2001/03/06 18:30:50     1.3
  +++ param.xsl 2001/03/12 00:48:14     1.4
  @@ -5,7 +5,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: param.xsl,v 1.3 2001/03/06 18:30:50 stark Exp $
  +     $Id: param.xsl,v 1.4 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -17,7 +17,7 @@
   <doc:reference xmlns="">
   <referenceinfo>
   <releaseinfo role="meta">
  -$Id: param.xsl,v 1.3 2001/03/06 18:30:50 stark Exp $
  +$Id: param.xsl,v 1.4 2001/03/12 00:48:14 tobias Exp $
   </releaseinfo>
   <author><surname>Walsh</surname>
   <firstname>Norman</firstname></author>
  @@ -71,7 +71,7 @@
   </doc:reference>
   
   <!-- ==================================================================== -->
  -<xsl:param name="author.othername.in.middle" select="1"/>
  +<xsl:param name="author.othername.in.middle" select="1" doc:type='boolean'/>
   
   <doc:param name="author.othername.in.middle" xmlns="">
   <refpurpose>Is <sgmltag>othername</sgmltag> in <sgmltag>author</sgmltag> a
  @@ -86,7 +86,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="html.stylesheet" select="''"/>
  +<xsl:param name="html.stylesheet" select="''" doc:type='string'/>
   
   <doc:param name="html.stylesheet" xmlns="">
   <refpurpose>Name of the stylesheet to use in the generated HTML</refpurpose>
  @@ -98,7 +98,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="html.stylesheet.type">text/css</xsl:param>
  +<xsl:param name="html.stylesheet.type" doc:type='string'>text/css</xsl:param>
   
   <doc:param name="html.stylesheet.type" xmlns="">
   <refpurpose>The type of the stylesheet used in the generated HTML</refpurpose>
  @@ -109,7 +109,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="html.base"></xsl:param>
  +<xsl:param name="html.base" doc:type='uri'></xsl:param>
   
   <doc:param name="html.base" xmlns="">
   <refpurpose>An HTML base URI</refpurpose>
  @@ -122,7 +122,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="ulink.target" select="'_top'"/>
  +<xsl:param name="ulink.target" select="'_top'" doc:type='string'/>
   
   <doc:param name="ulink.target" xmlns="">
   <refpurpose>The HTML anchor target for ULinks</refpurpose>
  @@ -134,7 +134,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="refentry.xref.manvolnum" select="1"/>
  +<xsl:param name="refentry.xref.manvolnum" select="1" doc:type='boolean'/>
   
   <doc:param name="refentry.xref.manvolnum" xmlns="">
   <refpurpose>Output <sgmltag>manvolnum</sgmltag> as part of 
  @@ -148,7 +148,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="show.comments">1</xsl:param>
  +<xsl:param name="show.comments" doc:type='boolean'>1</xsl:param>
   
   <doc:param name="show.comments" xmlns="">
   <refpurpose>Display <sgmltag>comment</sgmltag> elements?</refpurpose>
  @@ -162,7 +162,9 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="funcsynopsis.style">kr</xsl:param>
  +<xsl:param name="funcsynopsis.style"
  +           doc:type='list'
  +           doc:list='ansi kr'>kr</xsl:param>
   
   <doc:param name="funcsynopsis.style" xmlns="">
   <refpurpose>What style of 'FuncSynopsis' should be generated?</refpurpose>
  @@ -176,7 +178,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="funcsynopsis.decoration" select="1"/>
  +<xsl:param name="funcsynopsis.decoration" select="1" doc:type='boolean'/>
   
   <doc:param name="funcsynopsis.decoration" xmlns="">
   <refpurpose>Decorate elements of a FuncSynopsis?</refpurpose>
  @@ -189,7 +191,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="function.parens">0</xsl:param>
  +<xsl:param name="function.parens" doc:type='boolean'>0</xsl:param>
   
   <doc:param name="function.parens" xmlns="">
   <refpurpose>Generate parens after a function?</refpurpose>
  @@ -202,7 +204,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="refentry.generate.name" select="1"/>
  +<xsl:param name="refentry.generate.name" select="1" doc:type='boolean'/>
   
   <doc:param name="refentry.generate.name" xmlns="">
   <refpurpose>Output NAME header before 'RefName'(s)?</refpurpose>
  @@ -214,7 +216,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="admon.graphics" select="0"/>
  +<xsl:param name="admon.graphics" select="0" doc:type='boolean'/>
   
   <doc:param name="admon.graphics" xmlns="">
   <refpurpose>Use graphics in admonitions?</refpurpose>
  @@ -226,7 +228,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="admon.graphics.path">../images/</xsl:param>
  +<xsl:param name="admon.graphics.path" doc:type='string'>../images/</xsl:param>
   
   <doc:param name="admon.graphics.path" xmlns="">
   <refpurpose>Path to admonition graphics</refpurpose>
  @@ -238,7 +240,17 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="admon.style">
  +<xsl:param name="admon.graphics.extension" select="'.png'" doc:type='string'/>
  +
  +<doc:param name="admon.graphics.extension" xmlns="">
  +<refpurpose>Extension for admonition graphics</refpurpose>
  +<refdescription>
  +<para>Sets the extension to use on admonition graphics.</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="admon.style" doc:type='string'>
     <xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
   </xsl:param>
   
  @@ -252,7 +264,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="section.autolabel" select="0"/>
  +<xsl:param name="section.autolabel" select="0" doc:type='boolean'/>
   
   <doc:param name="section.autolabel" xmlns="">
   <refpurpose>Are sections enumerated?</refpurpose>
  @@ -263,7 +275,8 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="section.label.includes.component.label" select="0"/>
  +<xsl:param name="section.label.includes.component.label" select="0"
  +           doc:type='boolean'/>
   
   <doc:param name="section.label.includes.component.label" xmlns="">
   <refpurpose>Do section labels include the component label?</refpurpose>
  @@ -275,7 +288,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="chapter.autolabel" select="1"/>
  +<xsl:param name="chapter.autolabel" select="1" doc:type='boolean'/>
   
   <doc:param name="chapter.autolabel" xmlns="">
   <refpurpose>Are chapters and appendixes enumerated?</refpurpose>
  @@ -286,7 +299,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="preface.autolabel" select="0"/>
  +<xsl:param name="preface.autolabel" select="0" doc:type='boolean'/>
   
   <doc:param name="preface.autolabel" xmlns="">
   <refpurpose>Are prefaces enumerated?</refpurpose>
  @@ -297,7 +310,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="part.autolabel" select="1"/>
  +<xsl:param name="part.autolabel" select="1" doc:type='boolean'/>
   
   <doc:param name="part.autolabel" xmlns="">
   <refpurpose>Are parts and references enumerated?</refpurpose>
  @@ -308,7 +321,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="qandadiv.autolabel" select="1"/>
  +<xsl:param name="qandadiv.autolabel" select="1" doc:type='boolean'/>
   
   <doc:param name="qandadiv.autolabel" xmlns="">
   <refpurpose>Are divisions in QAndASets enumerated?</refpurpose>
  @@ -319,7 +332,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="qanda.inherit.numeration" select="1"/>
  +<xsl:param name="qanda.inherit.numeration" select="1" doc:type='boolean'/>
   
   <doc:param name="qanda.inherit.numeration" xmlns="">
   <refpurpose>Does enumeration of QandASet components inherit the numeration of 
parent elements?</refpurpose>
  @@ -331,7 +344,9 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="qanda.defaultlabel">number</xsl:param>
  +<xsl:param name="qanda.defaultlabel"
  +           doc:type='boolean'
  +           doc:list='qanda number none'>number</xsl:param>
   
   <doc:param name="qanda.defaultlabel" xmlns="">
   <refpurpose>Sets the default for defaultlabel on QandASet.</refpurpose>
  @@ -344,7 +359,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="generate.qandaset.toc">1</xsl:param>
  +<xsl:param name="generate.qandaset.toc" doc:type='boolean'>1</xsl:param>
   
   <doc:param name="generate.qandaset.toc" xmlns="">
   <refpurpose>Is a Table of Contents created for QandASets?</refpurpose>
  @@ -355,7 +370,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="generate.qandadiv.toc">0</xsl:param>
  +<xsl:param name="generate.qandadiv.toc" doc:type='boolean'>0</xsl:param>
   
   <doc:param name="generate.qandadiv.toc" xmlns="">
   <refpurpose>Is a Table of Contents created for QandADivs?</refpurpose>
  @@ -366,7 +381,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="biblioentry.item.separator">. </xsl:param>
  +<xsl:param name="biblioentry.item.separator" doc:type='string'>. </xsl:param>
   
   <doc:param name="biblioentry.item.separator" xmlns="">
   <refpurpose>Text to separate bibliography entries</refpurpose>
  @@ -377,7 +392,10 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="toc.section.depth">2</xsl:param>
  +<xsl:param name="toc.section.depth"
  +           doc:type='integer'
  +           doc:min='1'
  +           doc:max='10'>2</xsl:param>
   
   <doc:param name="toc.section.depth" xmlns="">
   <refpurpose>How deep should recursive <sgmltag>section</sgmltag>s appear
  @@ -390,7 +408,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="using.chunker" select="0"/>
  +<xsl:param name="using.chunker" select="0" doc:type='boolean'/>
   
   <doc:param name="using.chunker" xmlns="">
   <refpurpose>Will the output be chunked?</refpurpose>
  @@ -404,7 +422,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="generate.component.toc" select="1"/>
  +<xsl:param name="generate.component.toc" select="1" doc:type='boolean'/>
   
   <doc:param name="generate.component.toc" xmlns="">
   <refpurpose>Should TOCs be genereated in components (Chapters, Appendixes, 
etc.)?</refpurpose>
  @@ -414,7 +432,7 @@
   </refdescription>
   </doc:param>
   <!-- ==================================================================== -->
  -<xsl:param name="generate.division.toc" select="1"/>
  +<xsl:param name="generate.division.toc" select="1" doc:type='boolean'/>
   
   <doc:param name="generate.division.toc" xmlns="">
   <refpurpose>Should TOCs be genereated in divisions (Books, Parts, 
etc.)?</refpurpose>
  @@ -425,7 +443,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="link.mailto.url"></xsl:param>
  +<xsl:param name="link.mailto.url" doc:type='string'></xsl:param>
   
   <doc:param name="link.mailto.url" xmlns="">
   <refpurpose>Mailto URL for the LINK REL=made HTML HEAD element</refpurpose>
  @@ -437,7 +455,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="graphic.default.extension"></xsl:param>
  +<xsl:param name="graphic.default.extension" doc:type='string'></xsl:param>
   
   <doc:param name="graphic.default.extension" xmlns="">
   <refpurpose>Default extension for graphic filenames</refpurpose>
  @@ -451,7 +469,9 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="toc.list.type">dl</xsl:param>
  +<xsl:param name="toc.list.type"
  +           doc:type='list'
  +           doc:list='dl ul ol'>dl</xsl:param>
   
   <doc:param name="toc.list.type" xmlns="">
   <refpurpose>Type of HTML list element to use for Tables of Contents</refpurpose>
  @@ -463,7 +483,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="check.idref">1</xsl:param>
  +<xsl:param name="check.idref" doc:type='boolean'>1</xsl:param>
   
   <doc:param name="check.idref" xmlns="">
   <refpurpose>Test the target of IDREF attributes?</refpurpose>
  @@ -475,9 +495,8 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  +<xsl:param name="use.id.function" doc:type='boolean' select="'1'"/>
   
  -<xsl:param name="use.id.function">1</xsl:param>
  -
   <doc:param name="use.id.function" xmlns="">
   <refpurpose>Use the XPath id() function to find link targets?</refpurpose>
   <refdescription>
  @@ -491,7 +510,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="spacing.paras">1</xsl:param>
  +<xsl:param name="spacing.paras" doc:type='boolean' select="'1'"/>
   
   <doc:param name="spacing.paras" xmlns="">
   <refpurpose>Insert additional &lt;p&gt; elements for spacing?</refpurpose>
  @@ -522,7 +541,7 @@
   </doc:attribute-set>
   
   <!-- ==================================================================== -->
  -<xsl:param name="css.decoration">1</xsl:param>
  +<xsl:param name="css.decoration" doc:type='boolean'>1</xsl:param>
   
   <doc:param name="css.decoration" xmlns="">
   <refpurpose>Enable CSS decoration of elements</refpurpose>
  @@ -538,7 +557,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="show.revisionflag">0</xsl:param>
  +<xsl:param name="show.revisionflag" doc:type='boolean'>0</xsl:param>
   
   <doc:param name="show.revisionflag" xmlns="">
   <refpurpose>Enable decoration of elements that have a revisionflag</refpurpose>
  @@ -563,7 +582,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="suppress.navigation">0</xsl:param>
  +<xsl:param name="suppress.navigation" doc:type='boolean'>0</xsl:param>
   
   <doc:param name="suppress.navigation" xmlns="">
   <refpurpose>Disable header and footer navigation</refpurpose>
  @@ -575,7 +594,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="rootid" select="''"/>
  +<xsl:param name="rootid" select="''" doc:type='string'/>
   
   <doc:param name="rootid" xmlns="">
   <refpurpose>Specify the root element to format</refpurpose>
  @@ -592,7 +611,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="callout.list.table" select="'1'"/>
  +<xsl:param name="callout.list.table" select="'1'" doc:type='boolean'/>
   
   <doc:param name="callout.list.table" xmlns="">
   <refpurpose>Present callout lists using a table?</refpurpose>
  @@ -607,7 +626,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="callout.graphics" select="'1'"/>
  +<xsl:param name="callout.graphics" select="'1'" doc:type='boolean'/>
   
   <doc:param name="callout.graphics" xmlns="">
   <refpurpose>Use graphics for callouts?</refpurpose>
  @@ -620,7 +639,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="callout.graphics.extension" select="'.png'"/>
  +<xsl:param name="callout.graphics.extension" select="'.png'" doc:type='string'/>
   
   <doc:param name="callout.graphics.extension" xmlns="">
   <refpurpose>Extension for callout graphics</refpurpose>
  @@ -630,7 +649,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="callout.graphics.path" select="'../images/callouts/'"/>
  +<xsl:param name="callout.graphics.path" select="'../images/callouts/'" 
doc:type='string'/>
   
   <doc:param name="callout.graphics.path" xmlns="">
   <refpurpose>Path to callout graphics</refpurpose>
  @@ -642,7 +661,8 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="callout.graphics.number.limit" select="'10'"/>
  +<xsl:param name="callout.graphics.number.limit" select="'10'"
  +           doc:type='integer'/>
   
   <doc:param name="callout.graphics.number.limit" xmlns="">
   <refpurpose>Number of the largest callout graphic</refpurpose>
  @@ -660,23 +680,23 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="saxon.extensions" select="'0'"/>
  +<xsl:param name="use.extensions" select="'1'" doc:type='boolean'/>
   
  -<doc:param name="saxon.extensions" xmlns="">
  -<refpurpose>Enable Saxon extensions</refpurpose>
  +<doc:param name="use.extensions" xmlns="">
  +<refpurpose>Enable extensions</refpurpose>
   <refdescription>
  -<para>If non-zero, saxon extensions may be used. Each extension is
  +<para>If non-zero, extensions may be used. Each extension is
   further controlled by its own parameter. But if
  -<parameter>saxon.extensions</parameter> is zero, no extensions will
  +<parameter>use.extensions</parameter> is zero, no extensions will
   be used.
   </para>
   </refdescription>
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="saxon.textinsert" select="'1'"/>
  +<xsl:param name="textinsert.extension" select="'1'" doc:type='boolean'/>
   
  -<doc:param name="saxon.textinsert" xmlns="">
  +<doc:param name="textinsert.extension" xmlns="">
   <refpurpose>Enable the textinsert extension element</refpurpose>
   <refdescription>
   <para>The textinsert extension element inserts the contents of a
  @@ -685,8 +705,22 @@
   </refdescription>
   </doc:param>
   
  +<!-- ==================================================================== -->
  +<xsl:param name="saxon.linenumbering" select="'1'" doc:type='boolean'/>
  +
  +<doc:param name="saxon.linenumbering" xmlns="">
  +<refpurpose>Enable the line numbering extension</refpurpose>
  +<refdescription>
  +<para>If true, verbatim environments (elements that have the
  +format='linespecific' notation attribute: address, literallayout,
  +programlisting, screen, synopsis) that specify line numbering will
  +have, surprise, line numbers.
  +</para>
  +</refdescription>
  +</doc:param>
  +
   <!-- ==================================================================== -->
  -<xsl:param name="saxon.linenumbering" select="'1'"/>
  +<xsl:param name="linenumbering.extension" select="'1'" doc:type='boolean'/>
   
   <doc:param name="saxon.linenumbering" xmlns="">
   <refpurpose>Enable the line numbering extension</refpurpose>
  @@ -700,7 +734,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="linenumbering.everyNth" select="'5'"/>
  +<xsl:param name="linenumbering.everyNth" select="'5'" doc:type='integer'/>
   
   <doc:param name="linenumbering.everyNth" xmlns="">
   <refpurpose>Indicate which lines should be numbered</refpurpose>
  @@ -711,7 +745,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="linenumbering.width" select="'3'"/>
  +<xsl:param name="linenumbering.width" select="'3'" doc:type='integer'/>
   
   <doc:param name="linenumbering.width" xmlns="">
   <refpurpose>Indicates the width of line numbers</refpurpose>
  @@ -723,7 +757,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="linenumbering.separator" select="' '"/>
  +<xsl:param name="linenumbering.separator" select="' '" doc:type='string'/>
   
   <doc:param name="linenumbering.separator" xmlns="">
   <refpurpose>Specify a separator between line numbers and lines</refpurpose>
  @@ -735,7 +769,7 @@
   </doc:param>
   
   <!-- ==================================================================== -->
  -<xsl:param name="saxon.callouts" select="'1'"/>
  +<xsl:param name="saxon.callouts" select="'1'" doc:type='boolean'/>
   
   <doc:param name="saxon.callouts" xmlns="">
   <refpurpose>Enable the callout extension</refpurpose>
  @@ -747,8 +781,21 @@
   </refdescription>
   </doc:param>
   
  +<!-- ==================================================================== -->
  +<xsl:param name="callouts.extension" select="'1'" doc:type='boolean'/>
  +
  +<doc:param name="callouts.extension" xmlns="">
  +<refpurpose>Enable the callout extension</refpurpose>
  +<refdescription>
  +<para>The callouts extension processes <sgmltag>areaset</sgmltag>
  +elements in <sgmltag>ProgramListingCO</sgmltag> and other text-based
  +callout elements.
  +</para>
  +</refdescription>
  +</doc:param>
  +
   <!-- ==================================================================== -->
  -<xsl:param name="callout.defaultcolumn" select="'60'"/>
  +<xsl:param name="callout.defaultcolumn" select="'60'" doc:type='integer'/>
   
   <doc:param name="callout.defaultcolumn" xmlns="">
   <refpurpose>Indicates what column callouts appear in by default</refpurpose>
  @@ -756,6 +803,230 @@
   <para>If a callout does not identify a column (for example, if it uses
   the <literal>linerange</literal> <sgmltag class="attribute">unit</sgmltag>),
   it will appear in the default column.
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="stylesheet.result.type" select="'html'"
  +           doc:type='list'
  +           doc:list='html fo'/>
  +
  +<doc:param name="stylesheet.result.type" xmlns="">
  +<refpurpose>Identifies the output format of this stylesheet</refpurpose>
  +<refdescription>
  +<para>The Saxon extension functions need to know if the output format
  +is HTML ('html') or XSL Formatting Objects ('fo'). This variable answers
  +that question. Valid settings are 'html' or 'fo'.</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="nominal.table.width" select="'6in'" doc:type='length'/>
  +
  +<doc:param name="nominal.table.width" xmlns="">
  +<refpurpose>The (absolute) nominal width of tables</refpurpose>
  +<refdescription>
  +<para>In order to convert CALS column widths into HTML column widths, it
  +is sometimes necessary to have an absolute table width to use for conversion
  +of mixed absolute and relative widths. This value must be an absolute
  +length (not a percentag).</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="default.table.width" select="''" doc:type='length'/>
  +
  +<doc:param name="default.table.width" xmlns="">
  +<refpurpose>The default width of tables</refpurpose>
  +<refdescription>
  +<para>If specified, this value will be used for the WIDTH attribute on
  +tables that do not specify an alternate width (with the dbhtml processing
  +instruction).</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="saxon.tablecolumns" select="'1'" doc:type='boolean'/>
  +
  +<doc:param name="saxon.tablecolumns" xmlns="">
  +<refpurpose>Enable the table columns extension function</refpurpose>
  +<refdescription>
  +<para>The table columns extension function adjusts the widths of table
  +columns in the HTML result to more accurately reflect the specifications
  +in the CALS table.
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="tablecolumns.extension" select="'1'" doc:type='boolean'/>
  +
  +<doc:param name="saxon.tablecolumns" xmlns="">
  +<refpurpose>Enable the table columns extension function</refpurpose>
  +<refdescription>
  +<para>The table columns extension function adjusts the widths of table
  +columns in the HTML result to more accurately reflect the specifications
  +in the CALS table.
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.set.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.book.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.part.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.reference.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.preface.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.chapter.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.appendix.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.article.toc" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.section.toc" select='0' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="generate.index" select='1' doc:type='boolean'/>
  +
  +<doc:param name="" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="callout.unicode" select="0" doc:type='boolean'/>
  +
  +<doc:param name="callout.unicode" xmlns="">
  +<refpurpose>FIXME:</refpurpose>
  +<refdescription>
  +<para>FIXME:
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="callout.unicode.start.character" select="10102"
  +           doc:type='integer'/>
  +
  +<doc:param name="callout.graphics.number.limit" xmlns="">
  +<refpurpose>Number of the largest callout graphic</refpurpose>
  +<refdescription>
  +<para>If <parameter>callout.graphics</parameter>
  +is non-zero, graphics are used to represent
  +callout numbers. The value of
  +<parameter>callout.graphics.number.limit</parameter>
  +is
  +the largest number for which a graphic exists. If the callout number
  +exceeds this limit, the default presentation "(nnn)" will always
  +be used.
  +</para>
  +</refdescription>
  +</doc:param>
  +
  +<!-- ==================================================================== -->
  +<xsl:param name="callout.unicode.number.limit" select="'10'"
  +           doc:type='integer'/>
  +
  +<doc:param name="callout.graphics.number.limit" xmlns="">
  +<refpurpose>Number of the largest callout graphic</refpurpose>
  +<refdescription>
  +<para>If <parameter>callout.graphics</parameter>
  +is non-zero, graphics are used to represent
  +callout numbers. The value of
  +<parameter>callout.graphics.number.limit</parameter>
  +is
  +the largest number for which a graphic exists. If the callout number
  +exceeds this limit, the default presentation "(nnn)" will always
  +be used.
   </para>
   </refdescription>
   </doc:param>
  
  
  
  1.2       +6 -4      manual/src/docs/docbook/html/pi.xsl
  
  Index: pi.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/pi.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pi.xsl    2001/02/11 00:05:20     1.1
  +++ pi.xsl    2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: pi.xsl,v 1.1 2001/02/11 00:05:20 tobias Exp $
  +     $Id: pi.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -16,9 +16,11 @@
   </xsl:template>
   
   <xsl:template match="processing-instruction('dbhtml')">
  -  <xsl:processing-instruction name="dbhtml">
  -    <xsl:value-of select="."/>
  -  </xsl:processing-instruction>
  +  <xsl:if test="$using.chunker">
  +    <xsl:processing-instruction name="dbhtml">
  +      <xsl:value-of select="."/>
  +    </xsl:processing-instruction>
  +  </xsl:if>
   </xsl:template>
   
   <!-- ==================================================================== -->
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/qandaset.xsl
  
  Index: qandaset.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/qandaset.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- qandaset.xsl      2001/02/11 00:05:20     1.1
  +++ qandaset.xsl      2001/03/12 00:48:14     1.2
  @@ -5,7 +5,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: qandaset.xsl,v 1.1 2001/02/11 00:05:20 tobias Exp $
  +     $Id: qandaset.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +12 -4     manual/src/docs/docbook/html/refentry.xsl
  
  Index: refentry.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/refentry.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- refentry.xsl      2001/02/11 00:05:20     1.1
  +++ refentry.xsl      2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: refentry.xsl,v 1.1 2001/02/11 00:05:20 tobias Exp $
  +     $Id: refentry.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -15,11 +15,19 @@
   <!-- ==================================================================== -->
   
   <xsl:template match="reference">
  +  <xsl:variable name="id">
  +    <xsl:call-template name="object.id"/>
  +  </xsl:variable>
  +
     <div class="{name(.)}">
  +    <xsl:if test="@id">
  +      <a name="{$id}"/>
  +    </xsl:if>
       <xsl:call-template name="reference.titlepage"/>
  -    <xsl:apply-templates select="partintro"/>
  -    <xsl:call-template name="division.toc"/>
  -    <xsl:apply-templates select="*[local-name(.) != 'partintro']"/>
  +    <xsl:if test="not(partintro) and $generate.reference.toc != '0'">
  +      <xsl:call-template name="division.toc"/>
  +    </xsl:if>
  +    <xsl:apply-templates/>
     </div>
   </xsl:template>
   
  
  
  
  1.2       +41 -8     manual/src/docs/docbook/html/sections.xsl
  
  Index: sections.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/sections.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sections.xsl      2001/02/11 00:05:20     1.1
  +++ sections.xsl      2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: sections.xsl,v 1.1 2001/02/11 00:05:20 tobias Exp $
  +     $Id: sections.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -19,8 +19,13 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="section.titlepage"/>
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -46,6 +51,7 @@
           <xsl:with-param name="label-wrapper-class" select="'label'"/>
           <xsl:with-param name="title-wrapper" select="'span'"/>
           <xsl:with-param name="title-wrapper-class" select="'title'"/>
  +        <xsl:with-param name="allow-anchors" select="'1'"/>
         </xsl:apply-templates>
       </xsl:with-param>
     </xsl:call-template>
  @@ -56,8 +62,13 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="sect1.titlepage"/>
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -71,8 +82,13 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="sect2.titlepage"/>
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -86,8 +102,14 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="sect3.titlepage"/>
  +
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -101,8 +123,13 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="sect4.titlepage"/>
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -116,8 +143,13 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="sect5.titlepage"/>
  +    <xsl:if test="$generate.section.toc != '0'
  +                  or refentry">
  +      <xsl:call-template name="section.toc"/>
  +    </xsl:if>
       <xsl:apply-templates/>
     </div>
   </xsl:template>
  @@ -131,7 +163,8 @@
       <xsl:call-template name="object.id"/>
     </xsl:variable>
   
  -  <div id="{$id}" class="{name(.)}">
  +  <div class="{name(.)}">
  +    <a name="{$id}"/>
       <xsl:call-template name="simplesect.titlepage"/>
       <xsl:apply-templates/>
     </div>
  
  
  
  1.2       +2 -9      manual/src/docs/docbook/html/synop.xsl
  
  Index: synop.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/synop.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- synop.xsl 2001/02/11 00:05:21     1.1
  +++ synop.xsl 2001/03/12 00:48:14     1.2
  @@ -7,7 +7,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: synop.xsl,v 1.1 2001/02/11 00:05:21 tobias Exp $
  +     $Id: synop.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -18,14 +18,7 @@
   
   <!-- ==================================================================== -->
   
  -<xsl:template match="synopsis">
  -  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  -
  -  <div class="{name(.)}" id="{$id}">
  -    <a name="{$id}"/>
  -    <pre class=""><xsl:apply-templates/></pre>
  -  </div>
  -</xsl:template>
  +<!-- synopsis is in verbatim -->
   
   <!-- ==================================================================== -->
   
  
  
  
  1.2       +190 -9    manual/src/docs/docbook/html/table.xsl
  
  Index: table.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/table.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- table.xsl 2001/02/11 00:05:21     1.1
  +++ table.xsl 2001/03/12 00:48:14     1.2
  @@ -1,11 +1,14 @@
   <?xml version='1.0'?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
  -                exclude-result-prefixes="doc"
  +                xmlns:stbl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Table"
  +                xmlns:xtbl="com.nwalsh.xalan.Table"
  +                xmlns:lxslt="http://xml.apache.org/xslt"
  +                exclude-result-prefixes="doc stbl xtbl lxslt"
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: table.xsl,v 1.1 2001/02/11 00:05:21 tobias Exp $
  +     $Id: table.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -14,6 +17,9 @@
   
        ******************************************************************** -->
   
  +<lxslt:component prefix="xtbl"
  +                 functions="adjustColumnWidths"/>
  +
   <xsl:template match="tgroup">
     <table>
       <xsl:choose>
  @@ -46,6 +52,13 @@
       <xsl:if test="../@pgwide=1">
         <xsl:attribute name="width">100%</xsl:attribute>
       </xsl:if>
  +
  +    <xsl:if test="@align">
  +      <xsl:attribute name="align">
  +        <xsl:value-of select="@align"/>
  +      </xsl:attribute>
  +    </xsl:if>
  +
       <xsl:choose>
         <xsl:when test="../@frame='none'">
           <xsl:attribute name="border">0</xsl:attribute>
  @@ -54,11 +67,101 @@
           <xsl:attribute name="border">1</xsl:attribute>
         </xsl:otherwise>
       </xsl:choose>
  -    <colgroup>
  -      <xsl:call-template name="generate.colgroup">
  -        <xsl:with-param name="cols" select="@cols"/>
  +
  +    <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  +
  +    <xsl:variable name="colgroup">
  +      <colgroup>
  +        <xsl:call-template name="generate.colgroup">
  +          <xsl:with-param name="cols" select="@cols"/>
  +        </xsl:call-template>
  +      </colgroup>
  +    </xsl:variable>
  +
  +    <xsl:variable name="explicit.table.width">
  +      <xsl:call-template name="dbhtml-attribute">
  +        <xsl:with-param name="pis"
  +                        select="../processing-instruction('dbhtml')[1]"/>
  +        <xsl:with-param name="attribute" select="'table-width'"/>
         </xsl:call-template>
  -    </colgroup>
  +    </xsl:variable>
  +
  +    <xsl:variable name="table.width">
  +      <xsl:choose>
  +        <xsl:when test="$explicit.table.width != ''">
  +          <xsl:value-of select="$explicit.table.width"/>
  +        </xsl:when>
  +        <xsl:when test="$default.table.width = ''">
  +          <xsl:text>100%</xsl:text>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:value-of select="$default.table.width"/>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:variable>
  +
  +    <xsl:if test="$default.table.width != ''
  +                  or $explicit.table.width != ''">
  +      <xsl:attribute name="width">
  +        <xsl:choose>
  +          <xsl:when test="contains($table.width, '%')">
  +            <xsl:value-of select="$table.width"/>
  +          </xsl:when>
  +          <xsl:when test="$use.extensions != 0
  +                          and $tablecolumns.extension != 0">
  +            <xsl:choose>
  +              <xsl:when test="contains($vendor, 'SAXON 6')">
  +                <xsl:value-of select="stbl:convertLength($table.width)"/>
  +              </xsl:when>
  +              <xsl:when test="contains($vendor, 'SAXON 5')">
  +                <!-- the saxon5 extension doesn't support this (yet) -->
  +                <xsl:value-of select="$table.width"/>
  +              </xsl:when>
  +              <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +                <xsl:value-of select="xtbl:convertLength($table.width)"/>
  +              </xsl:when>
  +              <xsl:otherwise>
  +                <xsl:message terminate="yes">
  +                  <xsl:text>Don't know how to do convert lengths with </xsl:text>
  +                  <xsl:value-of select="$vendor"/>
  +                </xsl:message>
  +              </xsl:otherwise>
  +            </xsl:choose>
  +          </xsl:when>
  +          <xsl:otherwise>
  +            <xsl:value-of select="$table.width"/>
  +          </xsl:otherwise>
  +        </xsl:choose>
  +      </xsl:attribute>
  +    </xsl:if>
  +
  +    <xsl:choose>
  +      <xsl:when test="$use.extensions != 0
  +                      and $tablecolumns.extension != 0">
  +        <xsl:choose>
  +          <xsl:when test="contains($vendor, 'SAXON 6')">
  +            <xsl:copy-of select="stbl:adjustColumnWidths($colgroup)"/>
  +          </xsl:when>
  +          <xsl:when test="contains($vendor, 'SAXON 5')">
  +            <!-- the saxon5 extension doesn't support this (yet) -->
  +            <xsl:copy-of select="$colgroup"/>
  +          </xsl:when>
  +          <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +            <xsl:copy-of select="xtbl:adjustColumnWidths($colgroup)"/>
  +          </xsl:when>
  +          <xsl:otherwise>
  +            <xsl:message terminate="yes">
  +              <xsl:text>Don't know how to do adjust column widths with </xsl:text>
  +              <xsl:value-of select="$vendor"/>
  +            </xsl:message>
  +          </xsl:otherwise>
  +        </xsl:choose>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:copy-of select="$colgroup"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +
       <xsl:apply-templates/>
   
       <xsl:if test=".//footnote">
  @@ -200,9 +303,27 @@
     </xsl:variable>
   
     <xsl:if test="$entry.colnum != ''">
  +    <xsl:variable name="prev.entry" select="preceding-sibling::*[1]"/>
  +    <xsl:variable name="prev.ending.colnum">
  +      <xsl:choose>
  +        <xsl:when test="$prev.entry">
  +          <xsl:call-template name="entry.ending.colnum">
  +            <xsl:with-param name="entry" select="$prev.entry"/>
  +          </xsl:call-template>
  +        </xsl:when>
  +        <xsl:otherwise>0</xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:variable>
  +
       <xsl:call-template name="add-empty-entries">
  -      <xsl:with-param name="number"
  -           select="$entry.colnum - count(preceding-sibling::*) - 1"/>
  +      <xsl:with-param name="number">
  +        <xsl:choose>
  +          <xsl:when test="$prev.ending.colnum = ''">0</xsl:when>
  +          <xsl:otherwise>
  +            <xsl:value-of select="$entry.colnum - $prev.ending.colnum - 1"/>
  +          </xsl:otherwise>
  +        </xsl:choose>
  +      </xsl:with-param>
       </xsl:call-template>
     </xsl:if>
   
  @@ -238,6 +359,15 @@
         </xsl:attribute>
       </xsl:if>
   
  +    <xsl:if test="not(preceding-sibling::*)
  +                  and ancestor::row/@id">
  +      <a name="{ancestor::row/@id}"/>
  +    </xsl:if>
  +
  +    <xsl:if test="@id">
  +      <a name="{@id}"/>
  +    </xsl:if>
  +
       <xsl:choose>
         <xsl:when test="$empty.cell">
           <xsl:text>&#160;</xsl:text>
  @@ -283,6 +413,7 @@
   
   <xsl:template name="entry.colnum">
     <xsl:param name="entry" select="."/>
  +
     <xsl:choose>
       <xsl:when test="$entry/@colname">
         <xsl:variable name="colname" select="$entry/@colname"/>
  @@ -300,7 +431,16 @@
           <xsl:with-param name="colspec" select="$colspec"/>
         </xsl:call-template>
       </xsl:when>
  -    <xsl:otherwise></xsl:otherwise>
  +    <xsl:when test="count($entry/preceding-sibling::*) = 0">1</xsl:when>
  +    <xsl:otherwise>
  +      <xsl:variable name="pcol">
  +        <xsl:call-template name="entry.ending.colnum">
  +          <xsl:with-param name="entry"
  +                          select="$entry/preceding-sibling::*[1]"/>
  +        </xsl:call-template>
  +      </xsl:variable>
  +      <xsl:value-of select="$pcol + 1"/>
  +    </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
   
  @@ -329,6 +469,40 @@
   </refreturn>
   </doc:template>
   
  +<xsl:template name="entry.ending.colnum">
  +  <xsl:param name="entry" select="."/>
  +
  +  <xsl:choose>
  +    <xsl:when test="$entry/@colname">
  +      <xsl:variable name="colname" select="$entry/@colname"/>
  +      <xsl:variable name="colspec"
  +                    select="$entry/ancestor::tgroup/colspec[@colname=$colname]"/>
  +      <xsl:call-template name="colspec.colnum">
  +        <xsl:with-param name="colspec" select="$colspec"/>
  +      </xsl:call-template>
  +    </xsl:when>
  +    <xsl:when test="$entry/@nameend">
  +      <xsl:variable name="nameend" select="$entry/@nameend"/>
  +      <xsl:variable name="colspec"
  +                    select="$entry/ancestor::tgroup/colspec[@colname=$nameend]"/>
  +      <xsl:call-template name="colspec.colnum">
  +        <xsl:with-param name="colspec" select="$colspec"/>
  +      </xsl:call-template>
  +    </xsl:when>
  +    <xsl:when test="count($entry/preceding-sibling::*) = 0">1</xsl:when>
  +    <xsl:otherwise>
  +      <xsl:variable name="pcol">
  +        <xsl:call-template name="entry.ending.colnum">
  +          <xsl:with-param name="entry"
  +                          select="$entry/preceding-sibling::*[1]"/>
  +        </xsl:call-template>
  +      </xsl:variable>
  +      <xsl:value-of select="$pcol + 1"/>
  +    </xsl:otherwise>
  +  </xsl:choose>
  +</xsl:template>
  +
  +
   <xsl:template name="colspec.colnum">
     <xsl:param name="colspec" select="."/>
     <xsl:choose>
  @@ -391,6 +565,13 @@
         <xsl:choose>
           <xsl:when test="$colspec.colnum=$countcol">
             <col>
  +            <xsl:if test="$colspec/@colwidth
  +                          and $use.extensions != 0
  +                          and $tablecolumns.extension != 0">
  +              <xsl:attribute name="width">
  +                <xsl:value-of select="$colspec/@colwidth"/>
  +              </xsl:attribute>
  +            </xsl:if>
               <xsl:if test="$colspec/@align">
                 <xsl:attribute name="align">
                   <xsl:value-of select="$colspec/@align"/>
  
  
  
  1.2       +58 -2     manual/src/docs/docbook/html/titlepage.templates.xml
  
  Index: titlepage.templates.xml
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/titlepage.templates.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- titlepage.templates.xml   2001/02/11 00:05:21     1.1
  +++ titlepage.templates.xml   2001/03/12 00:48:14     1.2
  @@ -1,4 +1,5 @@
   <t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
  +          xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
   <!-- ==================================================================== -->
  @@ -119,7 +120,35 @@
     </t:titlepage-content>
   
     <t:titlepage-separator>
  -    <hr/>
  +  </t:titlepage-separator>
  +
  +  <t:titlepage-before side="recto">
  +  </t:titlepage-before>
  +
  +  <t:titlepage-before side="verso">
  +  </t:titlepage-before>
  +</t:titlepage>
  +
  +<t:titlepage element="partintro" wrapper="div">
  +  <t:titlepage-content side="recto">
  +    <title predicate="[1]"/>
  +    <subtitle predicate="[1]"/>
  +    <corpauthor/>
  +    <authorgroup/>
  +    <author/>
  +    <releaseinfo/>
  +    <copyright/>
  +    <legalnotice/>
  +    <pubdate/>
  +    <revision/>
  +    <revhistory/>
  +    <abstract/>
  +  </t:titlepage-content>
  +
  +  <t:titlepage-content side="verso">
  +  </t:titlepage-content>
  +
  +  <t:titlepage-separator>
     </t:titlepage-separator>
   
     <t:titlepage-before side="recto">
  @@ -163,9 +192,36 @@
   
   <!-- ==================================================================== -->
   
  +  <t:titlepage element="dedication" wrapper="div" class="titlepage">
  +    <t:titlepage-content side="recto">
  +      <title predicate="[1]"
  +          force="1"
  +          named-template="component.title"
  +          param:node="ancestor-or-self::dedication[1]"/>
  +      <subtitle predicate="[1]"/>
  +    </t:titlepage-content>
  +
  +  <t:titlepage-content side="verso">
  +  </t:titlepage-content>
  +
  +  <t:titlepage-separator>
  +  </t:titlepage-separator>
  +
  +  <t:titlepage-before side="recto">
  +  </t:titlepage-before>
  +
  +  <t:titlepage-before side="verso">
  +  </t:titlepage-before>
  +</t:titlepage>
  +
  +<!-- ==================================================================== -->
  +
   <t:titlepage element="preface" wrapper="div" class="titlepage">
     <t:titlepage-content side="recto">
  -    <title predicate="[1]"/>
  +      <title predicate="[1]"
  +          force="1"
  +          named-template="component.title"
  +          param:node="ancestor-or-self::preface[1]"/>
       <subtitle predicate="[1]"/>
       <corpauthor/>
       <authorgroup/>
  
  
  
  1.2       +1428 -182 manual/src/docs/docbook/html/titlepage.templates.xsl
  
  Index: titlepage.templates.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/titlepage.templates.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- titlepage.templates.xsl   2001/02/11 00:05:21     1.1
  +++ titlepage.templates.xsl   2001/03/12 00:48:14     1.2
  @@ -1,20 +1,20 @@
   <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   
  -<!-- This stylesheet was created by titlepage.xsl; do not edit it by hand. -->
  +<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. 
-->
   
   <xsl:template name="article.titlepage.recto">
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="(articleinfo/title|artheader/title|title)[1]"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="(articleinfo/subtitle|artheader/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/corpauthor|artheader/corpauthor"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/authorgroup|artheader/authorgroup"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/author|artheader/author"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/releaseinfo|artheader/releaseinfo"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/copyright|artheader/copyright"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/legalnotice|artheader/legalnotice"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/pubdate|artheader/pubdate"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/revision|artheader/revision"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/revhistory|artheader/revhistory"/>
  -  <xsl:apply-templates mode="article.titlepage.recto.mode" 
select="articleinfo/abstract|artheader/abstract"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="(articleinfo/title|artheader/title|title)[1]"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="(articleinfo/subtitle|artheader/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/corpauthor|artheader/corpauthor"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/authorgroup|artheader/authorgroup"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/author|artheader/author"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/releaseinfo|artheader/releaseinfo"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/copyright|artheader/copyright"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/legalnotice|artheader/legalnotice"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/pubdate|artheader/pubdate"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/revision|artheader/revision"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/revhistory|artheader/revhistory"/>
  +  <xsl:apply-templates mode="article.titlepage.recto.auto.mode" 
select="articleinfo/abstract|artheader/abstract"/>
   </xsl:template>
   
   <xsl:template name="article.titlepage.verso">
  @@ -51,19 +51,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="article.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="set.titlepage.recto">
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" 
select="(setinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" 
select="(setinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/corpauthor"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" 
select="setinfo/authorgroup"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/author"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" 
select="setinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/copyright"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" 
select="setinfo/legalnotice"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/pubdate"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/revision"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/revhistory"/>
  -  <xsl:apply-templates mode="set.titlepage.recto.mode" select="setinfo/abstract"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="(setinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="(setinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/corpauthor"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/authorgroup"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/author"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/copyright"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/legalnotice"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/pubdate"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/revision"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/revhistory"/>
  +  <xsl:apply-templates mode="set.titlepage.recto.auto.mode" 
select="setinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="set.titlepage.verso">
  @@ -100,19 +172,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="set.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="book.titlepage.recto">
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="(bookinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="(bookinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/corpauthor"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/authorgroup"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" select="bookinfo/author"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/copyright"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/legalnotice"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" select="bookinfo/pubdate"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" select="bookinfo/revision"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" 
select="bookinfo/revhistory"/>
  -  <xsl:apply-templates mode="book.titlepage.recto.mode" select="bookinfo/abstract"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="(bookinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="(bookinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/corpauthor"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/authorgroup"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/author"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/copyright"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/legalnotice"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/pubdate"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/revision"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/revhistory"/>
  +  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" 
select="bookinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="book.titlepage.verso">
  @@ -149,25 +293,97 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="book.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="book.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="part.titlepage.recto">
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="(partinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="(partinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="part.titlepage.recto.mode" 
select="partinfo/abstract|docinfo/abstract"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="(partinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="(partinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="part.titlepage.recto.auto.mode" 
select="partinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="part.titlepage.verso">
   </xsl:template>
   
  -<xsl:template name="part.titlepage.separator"><hr/>
  +<xsl:template name="part.titlepage.separator">
   </xsl:template>
   
   <xsl:template name="part.titlepage.before.recto">
  @@ -198,19 +414,212 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="part.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="part.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage.recto">
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="(partintroinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="(partintroinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" 
select="partintroinfo/abstract|docinfo/abstract"/>
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage.verso">
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage.separator">
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage.before.recto">
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage.before.verso">
  +</xsl:template>
  +
  +<xsl:template name="partintro.titlepage">
  +  <div>
  +    <xsl:call-template name="partintro.titlepage.before.recto"/>
  +    <xsl:call-template name="partintro.titlepage.recto"/>
  +    <xsl:call-template name="partintro.titlepage.before.verso"/>
  +    <xsl:call-template name="partintro.titlepage.verso"/>
  +    <xsl:call-template name="partintro.titlepage.separator"/>
  +  </div>
  +</xsl:template>
  +
  +<xsl:template match="*" mode="partintro.titlepage.recto.mode">
  +  <!-- if an element isn't found in this mode, -->
  +  <!-- try the generic titlepage.mode -->
  +  <xsl:apply-templates select="." mode="titlepage.mode"/>
  +</xsl:template>
  +
  +<xsl:template match="*" mode="partintro.titlepage.verso.mode">
  +  <!-- if an element isn't found in this mode, -->
  +  <!-- try the generic titlepage.mode -->
  +  <xsl:apply-templates select="." mode="titlepage.mode"/>
  +</xsl:template>
  +
  +<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="partintro.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="reference.titlepage.recto">
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="(referenceinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="(referenceinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="reference.titlepage.recto.mode" 
select="referenceinfo/abstract|docinfo/abstract"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="(referenceinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="(referenceinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" 
select="referenceinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="reference.titlepage.verso">
  @@ -247,19 +656,142 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="reference.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage.recto">
  +  <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
  +<xsl:call-template name="component.title">
  +<xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
  +</xsl:call-template></div>
  +  <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" 
select="(dedicationinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage.verso">
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage.separator">
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage.before.recto">
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage.before.verso">
  +</xsl:template>
  +
  +<xsl:template name="dedication.titlepage">
  +  <div class="titlepage">
  +    <xsl:call-template name="dedication.titlepage.before.recto"/>
  +    <xsl:call-template name="dedication.titlepage.recto"/>
  +    <xsl:call-template name="dedication.titlepage.before.verso"/>
  +    <xsl:call-template name="dedication.titlepage.verso"/>
  +    <xsl:call-template name="dedication.titlepage.separator"/>
  +  </div>
  +</xsl:template>
  +
  +<xsl:template match="*" mode="dedication.titlepage.recto.mode">
  +  <!-- if an element isn't found in this mode, -->
  +  <!-- try the generic titlepage.mode -->
  +  <xsl:apply-templates select="." mode="titlepage.mode"/>
  +</xsl:template>
  +
  +<xsl:template match="*" mode="dedication.titlepage.verso.mode">
  +  <!-- if an element isn't found in this mode, -->
  +  <!-- try the generic titlepage.mode -->
  +  <xsl:apply-templates select="." mode="titlepage.mode"/>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="dedication.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="preface.titlepage.recto">
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="(prefaceinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="(prefaceinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="preface.titlepage.recto.mode" 
select="prefaceinfo/abstract|docinfo/abstract"/>
  +  <div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:call-template name="component.title">
  +<xsl:with-param name="node" select="ancestor-or-self::preface[1]"/>
  +</xsl:call-template></div>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="(prefaceinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" 
select="prefaceinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="preface.titlepage.verso">
  @@ -296,19 +828,85 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="preface.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="chapter.titlepage.recto">
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="(chapterinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="(chapterinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="chapter.titlepage.recto.mode" 
select="chapterinfo/abstract|docinfo/abstract"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="(chapterinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="(chapterinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" 
select="chapterinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="chapter.titlepage.verso">
  @@ -345,19 +943,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="chapter.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="appendix.titlepage.recto">
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="(appendixinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="(appendixinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="appendix.titlepage.recto.mode" 
select="appendixinfo/abstract|docinfo/abstract"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="(appendixinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="(appendixinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" 
select="appendixinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="appendix.titlepage.verso">
  @@ -394,19 +1064,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="appendix.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="section.titlepage.recto">
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="(sectioninfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="(sectioninfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/corpauthor"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/authorgroup"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/author"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/releaseinfo"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/copyright"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/legalnotice"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/pubdate"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/revision"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/revhistory"/>
  -  <xsl:apply-templates mode="section.titlepage.recto.mode" 
select="sectioninfo/abstract"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="(sectioninfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="(sectioninfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/corpauthor"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/authorgroup"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/author"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/releaseinfo"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/copyright"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/legalnotice"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/pubdate"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/revision"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/revhistory"/>
  +  <xsl:apply-templates mode="section.titlepage.recto.auto.mode" 
select="sectioninfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="section.titlepage.verso">
  @@ -443,19 +1185,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="section.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="sect1.titlepage.recto">
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="(sect1info/title|title)[1]"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="(sect1info/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/corpauthor"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/authorgroup"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" select="sect1info/author"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/releaseinfo"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/copyright"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/legalnotice"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/pubdate"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/revision"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/revhistory"/>
  -  <xsl:apply-templates mode="sect1.titlepage.recto.mode" 
select="sect1info/abstract"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="(sect1info/title|title)[1]"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="(sect1info/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/corpauthor"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/authorgroup"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/author"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/releaseinfo"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/copyright"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/legalnotice"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/pubdate"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/revision"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/revhistory"/>
  +  <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" 
select="sect1info/abstract"/>
   </xsl:template>
   
   <xsl:template name="sect1.titlepage.verso">
  @@ -492,19 +1306,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect1.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="sect2.titlepage.recto">
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="(sect2info/title|title)[1]"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="(sect2info/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/corpauthor"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/authorgroup"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" select="sect2info/author"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/releaseinfo"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/copyright"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/legalnotice"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/pubdate"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/revision"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/revhistory"/>
  -  <xsl:apply-templates mode="sect2.titlepage.recto.mode" 
select="sect2info/abstract"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="(sect2info/title|title)[1]"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="(sect2info/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/corpauthor"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/authorgroup"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/author"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/releaseinfo"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/copyright"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/legalnotice"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/pubdate"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/revision"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/revhistory"/>
  +  <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" 
select="sect2info/abstract"/>
   </xsl:template>
   
   <xsl:template name="sect2.titlepage.verso">
  @@ -541,19 +1427,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect2.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="sect3.titlepage.recto">
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="(sect3info/title|title)[1]"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="(sect3info/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/corpauthor"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/authorgroup"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" select="sect3info/author"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/releaseinfo"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/copyright"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/legalnotice"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/pubdate"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/revision"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/revhistory"/>
  -  <xsl:apply-templates mode="sect3.titlepage.recto.mode" 
select="sect3info/abstract"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="(sect3info/title|title)[1]"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="(sect3info/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/corpauthor"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/authorgroup"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/author"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/releaseinfo"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/copyright"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/legalnotice"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/pubdate"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/revision"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/revhistory"/>
  +  <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" 
select="sect3info/abstract"/>
   </xsl:template>
   
   <xsl:template name="sect3.titlepage.verso">
  @@ -590,19 +1548,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect3.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="sect4.titlepage.recto">
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="(sect4info/title|title)[1]"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="(sect4info/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/corpauthor"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/authorgroup"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" select="sect4info/author"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/releaseinfo"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/copyright"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/legalnotice"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/pubdate"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/revision"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/revhistory"/>
  -  <xsl:apply-templates mode="sect4.titlepage.recto.mode" 
select="sect4info/abstract"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="(sect4info/title|title)[1]"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="(sect4info/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/corpauthor"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/authorgroup"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/author"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/releaseinfo"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/copyright"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/legalnotice"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/pubdate"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/revision"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/revhistory"/>
  +  <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" 
select="sect4info/abstract"/>
   </xsl:template>
   
   <xsl:template name="sect4.titlepage.verso">
  @@ -639,19 +1669,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect4.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="sect5.titlepage.recto">
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="(sect5info/title|title)[1]"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="(sect5info/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/corpauthor"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/authorgroup"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" select="sect5info/author"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/releaseinfo"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/copyright"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/legalnotice"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/pubdate"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/revision"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/revhistory"/>
  -  <xsl:apply-templates mode="sect5.titlepage.recto.mode" 
select="sect5info/abstract"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="(sect5info/title|title)[1]"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="(sect5info/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/corpauthor"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/authorgroup"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/author"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/releaseinfo"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/copyright"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/legalnotice"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/pubdate"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/revision"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/revhistory"/>
  +  <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" 
select="sect5info/abstract"/>
   </xsl:template>
   
   <xsl:template name="sect5.titlepage.verso">
  @@ -688,19 +1790,91 @@
     <xsl:apply-templates select="." mode="titlepage.mode"/>
   </xsl:template>
   
  +<xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="sect5.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
   <xsl:template name="simplesect.titlepage.recto">
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="(simplesectinfo/title|docinfo/title|title)[1]"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="(simplesectinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/corpauthor|docinfo/corpauthor"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/authorgroup|docinfo/authorgroup"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/author|docinfo/author"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/releaseinfo|docinfo/releaseinfo"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/copyright|docinfo/copyright"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/legalnotice|docinfo/legalnotice"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/pubdate|docinfo/pubdate"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/revision|docinfo/revision"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/revhistory|docinfo/revhistory"/>
  -  <xsl:apply-templates mode="simplesect.titlepage.recto.mode" 
select="simplesectinfo/abstract|docinfo/abstract"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="(simplesectinfo/title|docinfo/title|title)[1]"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="(simplesectinfo/subtitle|docinfo/subtitle|subtitle)[1]"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/corpauthor|docinfo/corpauthor"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/authorgroup|docinfo/authorgroup"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/author|docinfo/author"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/releaseinfo|docinfo/releaseinfo"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/copyright|docinfo/copyright"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/legalnotice|docinfo/legalnotice"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/pubdate|docinfo/pubdate"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/revision|docinfo/revision"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/revhistory|docinfo/revhistory"/>
  +  <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" 
select="simplesectinfo/abstract|docinfo/abstract"/>
   </xsl:template>
   
   <xsl:template name="simplesect.titlepage.verso">
  @@ -735,6 +1909,78 @@
     <!-- if an element isn't found in this mode, -->
     <!-- try the generic titlepage.mode -->
     <xsl:apply-templates select="." mode="titlepage.mode"/>
  +</xsl:template>
  +
  +<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
  +</xsl:template>
  +
  +<xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
  +<div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
  +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
  +</div>
   </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.2       +107 -9    manual/src/docs/docbook/html/titlepage.xsl
  
  Index: titlepage.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/titlepage.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- titlepage.xsl     2001/02/11 00:05:21     1.1
  +++ titlepage.xsl     2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: titlepage.xsl,v 1.1 2001/02/11 00:05:21 tobias Exp $
  +     $Id: titlepage.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -14,6 +14,89 @@
   
   <!-- ==================================================================== -->
   
  +<xsl:attribute-set name="book.titlepage.recto.style"/>
  +<xsl:attribute-set name="book.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="article.titlepage.recto.style"/>
  +<xsl:attribute-set name="article.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="set.titlepage.recto.style"/>
  +<xsl:attribute-set name="set.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="part.titlepage.recto.style"/>
  +<xsl:attribute-set name="part.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="partintro.titlepage.recto.style"/>
  +<xsl:attribute-set name="partintro.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="reference.titlepage.recto.style"/>
  +<xsl:attribute-set name="reference.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="dedication.titlepage.recto.style"/>
  +<xsl:attribute-set name="dedication.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="preface.titlepage.recto.style"/>
  +<xsl:attribute-set name="preface.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="chapter.titlepage.recto.style"/>
  +<xsl:attribute-set name="chapter.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="appendix.titlepage.recto.style"/>
  +<xsl:attribute-set name="appendix.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="sect1.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="sect1.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="sect2.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="sect2.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="sect3.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="sect3.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="sect4.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="sect4.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="sect5.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="sect5.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="simplesect.titlepage.recto.style"
  +                   use-attribute-sets="section.titlepage.recto.style"/>
  +<xsl:attribute-set name="simplesect.titlepage.verso.style"
  +                   use-attribute-sets="section.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
  +<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
  +<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
  +<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
  +<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
  +<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
  +
  +<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
  +<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
  +
  +<!-- ==================================================================== -->
  +
   <xsl:template match="*" mode="titlepage.mode">
     <!-- if an element isn't found in this mode, try the default mode -->
     <xsl:apply-templates select="."/>
  @@ -41,10 +124,7 @@
   </xsl:template>
   
   <xsl:template match="address" mode="titlepage.mode">
  -<!-- this won't do quite what's desired... -->
  -  <pre class="{name(.)}">
  -  <xsl:apply-templates mode="titlepage.mode"/>
  -  </pre>
  +  <xsl:apply-templates select="."/>
   </xsl:template>
   
   <xsl:template match="affiliation" mode="titlepage.mode">
  @@ -69,7 +149,7 @@
     <div class="{name(.)}">
       <xsl:apply-templates mode="titlepage.mode"/>
     </div>
  -</xsl:template>  
  +</xsl:template>
   
   <xsl:template match="authorgroup" mode="titlepage.mode">
     <xsl:apply-templates mode="titlepage.mode"/>
  @@ -98,12 +178,29 @@
   </xsl:template>
   
   <xsl:template match="confgroup" mode="titlepage.mode">
  +  <div class="{name(.)}">
  +    <xsl:apply-templates mode="titlepage.mode"/>
  +  </div>
  +</xsl:template>
  +
  +<xsl:template match="confdates" mode="titlepage.mode">
     <span class="{name(.)}">
       <xsl:apply-templates mode="titlepage.mode"/>
       <br/>
     </span>
   </xsl:template>
   
  +<xsl:template match="conftitle" mode="titlepage.mode">
  +  <span class="{name(.)}">
  +    <xsl:apply-templates mode="titlepage.mode"/>
  +    <br/>
  +  </span>
  +</xsl:template>
  +
  +<xsl:template match="confnum" mode="titlepage.mode">
  +  <!-- suppress -->
  +</xsl:template>
  +
   <xsl:template match="contractnum" mode="titlepage.mode">
     <span class="{name(.)}">
       <xsl:apply-templates mode="titlepage.mode"/>
  @@ -138,8 +235,10 @@
       <xsl:call-template name="gentext.space"/>
       <xsl:apply-templates select="$years" mode="titlepage.mode"/>
       <xsl:call-template name="gentext.space"/>
  +<!--
       <xsl:call-template name="gentext.by"/>
       <xsl:call-template name="gentext.space"/>
  +-->
       <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
     </p>
   </xsl:template>
  @@ -348,10 +447,9 @@
   </xsl:template>
   
   <xsl:template match="releaseinfo" mode="titlepage.mode">
  -  <span class="{name(.)}">
  +  <p class="{name(.)}">
       <xsl:apply-templates mode="titlepage.mode"/>
  -    <br/>
  -  </span>
  +  </p>
   </xsl:template>
   
   <xsl:template match="revhistory" mode="titlepage.mode">
  
  
  
  1.2       +0 -0      manual/src/docs/docbook/html/toc.xsl
  
  Index: toc.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/toc.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- toc.xsl   2001/02/11 00:05:22     1.1
  +++ toc.xsl   2001/03/12 00:48:14     1.2
  @@ -3,7 +3,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: toc.xsl,v 1.1 2001/02/11 00:05:22 tobias Exp $
  +     $Id: toc.xsl,v 1.2 2001/03/12 00:48:14 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  
  
  
  1.2       +123 -26   manual/src/docs/docbook/html/verbatim.xsl
  
  Index: verbatim.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/verbatim.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- verbatim.xsl      2001/02/11 00:05:22     1.1
  +++ verbatim.xsl      2001/03/12 00:48:15     1.2
  @@ -1,11 +1,13 @@
   <?xml version='1.0'?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -                xmlns:verb="com.nwalsh.saxon.Verbatim"
  -                exclude-result-prefixes="verb"
  +                xmlns:sverb="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.Verbatim"
  +                xmlns:xverb="com.nwalsh.xalan.Verbatim"
  +                xmlns:lxslt="http://xml.apache.org/xslt"
  +                exclude-result-prefixes="sverb xverb lxslt"
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: verbatim.xsl,v 1.1 2001/02/11 00:05:22 tobias Exp $
  +     $Id: verbatim.xsl,v 1.2 2001/03/12 00:48:15 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -14,24 +16,75 @@
   
        ******************************************************************** -->
   
  -<xsl:template match="programlisting|screen">
  +<lxslt:component prefix="xverb"
  +                 functions="numberLines"/>
  +
  +<xsl:template match="programlisting|screen|synopsis">
     <xsl:param name="suppress-numbers" select="'0'"/>
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  +  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  +
  +  <!-- Obey the <?dbhtml linenumbering.everyNth="x"?> PI -->
  +  <xsl:variable name="pi.linenumbering.everyNth">
  +    <xsl:call-template name="dbhtml-attribute">
  +      <xsl:with-param name="attribute" select="'everyNth'"/>
  +    </xsl:call-template>
  +  </xsl:variable>
  +
  +  <xsl:variable name="everyNth">
  +    <xsl:choose>
  +      <xsl:when test="$pi.linenumbering.everyNth != ''">
  +        <xsl:value-of select="$pi.linenumbering.everyNth"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:value-of select="$linenumbering.everyNth"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:variable>
  +
  +  <!-- Obey the <?dbhtml linenumbering.separator="x"?> PI -->
  +  <xsl:variable name="pi.linenumbering.separator">
  +    <xsl:call-template name="dbhtml-attribute">
  +      <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
  +    </xsl:call-template>
  +  </xsl:variable>
  +
  +  <xsl:variable name="separator">
  +    <xsl:choose>
  +      <xsl:when test="$pi.linenumbering.separator != ''">
  +        <xsl:value-of select="$pi.linenumbering.separator"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:value-of select="$linenumbering.separator"/>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:variable>
   
  +  <xsl:if test="@id">
  +    <a href="{$id}"/>
  +  </xsl:if>
  +
     <xsl:choose>
       <xsl:when test="$suppress-numbers = '0'
                       and @linenumbering = 'numbered'
  -                    and $saxon.extensions != '0'
  -                    and $saxon.linenumbering != '0'">
  +                    and $use.extensions != '0'
  +                    and $linenumbering.extension != '0'">
         <xsl:variable name="rtf">
           <xsl:apply-templates/>
         </xsl:variable>
         <pre class="{name(.)}">
  -        <xsl:copy-of select="verb:numberLines($rtf,
  -                                              $linenumbering.everyNth,
  -                                              $linenumbering.width,
  -                                              $linenumbering.separator)"/>
  +        <xsl:call-template name="number.rtf.lines">
  +          <xsl:with-param name="rtf" select="$rtf"/>
  +          <xsl:with-param name="linenumbering.everyNth"
  +                          select="$everyNth"/>
  +          <xsl:with-param name="linenumbering.width"
  +                          select="$linenumbering.width"/>
  +          <xsl:with-param name="linenumbering.separator"
  +                          select="$separator"/>
  +        </xsl:call-template>
         </pre>
       </xsl:when>
  +
       <xsl:otherwise>
         <pre class="{name(.)}">
           <xsl:apply-templates/>
  @@ -42,6 +95,7 @@
   
   <xsl:template match="literallayout">
     <xsl:param name="suppress-numbers" select="'0'"/>
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
   
     <xsl:variable name="rtf">
       <xsl:apply-templates/>
  @@ -50,27 +104,38 @@
     <xsl:choose>
       <xsl:when test="$suppress-numbers = '0'
                       and @linenumbering = 'numbered'
  -                    and $saxon.extensions != '0'
  -                    and $saxon.linenumbering != '0'">
  +                    and $use.extensions != '0'
  +                    and $linenumbering.extension != '0'">
         <xsl:choose>
           <xsl:when test="@class='monospaced'">
             <pre class="{name(.)}">
  -            <xsl:copy-of select="verb:numberLines($rtf,
  -                                                  $linenumbering.everyNth,
  -                                                  $linenumbering.width,
  -                                                  $linenumbering.separator)"/>
  +            <xsl:call-template name="number.rtf.lines">
  +              <xsl:with-param name="rtf" select="$rtf"/>
  +              <xsl:with-param name="linenumbering.everyNth"
  +                              select="$linenumbering.everyNth"/>
  +              <xsl:with-param name="linenumbering.width"
  +                              select="$linenumbering.width"/>
  +              <xsl:with-param name="linenumbering.separator"
  +                              select="$linenumbering.separator"/>
  +            </xsl:call-template>
             </pre>
           </xsl:when>
           <xsl:otherwise>
             <div class="{name(.)}">
  -            <xsl:copy-of select="verb:numberLines($rtf,
  -                                                  $linenumbering.everyNth,
  -                                                  $linenumbering.width,
  -                                                  $linenumbering.separator)"/>
  +            <xsl:call-template name="number.rtf.lines">
  +              <xsl:with-param name="rtf" select="$rtf"/>
  +              <xsl:with-param name="linenumbering.everyNth"
  +                              select="$linenumbering.everyNth"/>
  +              <xsl:with-param name="linenumbering.width"
  +                              select="$linenumbering.width"/>
  +              <xsl:with-param name="linenumbering.separator"
  +                              select="$linenumbering.separator"/>
  +            </xsl:call-template>
             </div>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
  +
       <xsl:otherwise>
         <xsl:choose>
           <xsl:when test="@class='monospaced'">
  @@ -97,6 +162,7 @@
   
   <xsl:template match="address">
     <xsl:param name="suppress-numbers" select="'0'"/>
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
   
     <xsl:variable name="rtf">
       <xsl:apply-templates/>
  @@ -105,19 +171,50 @@
     <xsl:choose>
       <xsl:when test="$suppress-numbers = '0'
                       and @linenumbering = 'numbered'
  -                    and $saxon.extensions != '0'
  -                    and $saxon.linenumbering != '0'">
  +                    and $use.extensions != '0'
  +                    and $linenumbering.extension != '0'">
         <div class="{name(.)}">
  -        <xsl:copy-of select="verb:numberLines($rtf,
  -                                              $linenumbering.everyNth,
  -                                              $linenumbering.width,
  -                                              $linenumbering.separator)"/>
  +        <xsl:call-template name="number.rtf.lines">
  +          <xsl:with-param name="rtf" select="$rtf"/>
  +          <xsl:with-param name="linenumbering.everyNth"
  +                          select="$linenumbering.everyNth"/>
  +          <xsl:with-param name="linenumbering.width"
  +                          select="$linenumbering.width"/>
  +          <xsl:with-param name="linenumbering.separator"
  +                          select="$linenumbering.separator"/>
  +        </xsl:call-template>
         </div>
       </xsl:when>
  +
       <xsl:otherwise>
         <div class="{name(.)}">
           <xsl:apply-templates/>
         </div>
  +    </xsl:otherwise>
  +  </xsl:choose>
  +</xsl:template>
  +
  +<xsl:template name="number.rtf.lines">
  +  <xsl:param name="rtf" select="''"/>
  +  <!-- the following parameters must have these names ... -->
  +  <xsl:param name="linenumbering.everyNth" select="1"/>
  +  <xsl:param name="linenumbering.width" select="3"/>
  +  <xsl:param name="linenumbering.separator" select="' |'"/>
  +
  +  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
  +
  +  <xsl:choose>
  +    <xsl:when test="contains($vendor, 'SAXON ')">
  +      <xsl:copy-of select="sverb:numberLines($rtf)"/>
  +    </xsl:when>
  +    <xsl:when test="contains($vendor, 'Apache Software Foundation')">
  +      <xsl:copy-of select="xverb:numberLines($rtf)"/>
  +    </xsl:when>
  +    <xsl:otherwise>
  +      <xsl:message terminate="yes">
  +        <xsl:text>Don't know how to do line numbering with </xsl:text>
  +        <xsl:value-of select="$vendor"/>
  +      </xsl:message>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
  
  
  
  1.2       +9 -2      manual/src/docs/docbook/html/xref.xsl
  
  Index: xref.xsl
  ===================================================================
  RCS file: /products/cvs/ejboss/manual/src/docs/docbook/html/xref.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- xref.xsl  2001/02/11 00:05:22     1.1
  +++ xref.xsl  2001/03/12 00:48:15     1.2
  @@ -5,7 +5,7 @@
                   version='1.0'>
   
   <!-- ********************************************************************
  -     $Id: xref.xsl,v 1.1 2001/02/11 00:05:22 tobias Exp $
  +     $Id: xref.xsl,v 1.2 2001/03/12 00:48:15 tobias Exp $
        ********************************************************************
   
        This file is part of the XSL DocBook Stylesheet distribution.
  @@ -283,6 +283,13 @@
     <xsl:text>???</xsl:text>
   </xsl:template>
   
  +<xsl:template match="author" mode="xref-to">
  +  <xsl:param name="target" select="."/>
  +  <xsl:param name="refelem" select="local-name($target)"/>
  +
  +  <xsl:call-template name="person.name"/>
  +</xsl:template>
  +
   <xsl:template match="figure" mode="xref-to">
     <xsl:param name="target" select="."/>
     <xsl:param name="refelem" select="local-name($target)"/>
  @@ -382,7 +389,7 @@
     </xsl:call-template>
   </xsl:template>
   
  -<xsl:template match="biblioentry" mode="xref-to">
  +<xsl:template match="biblioentry|bibliomixed" mode="xref-to">
     <!-- handles both biblioentry and bibliomixed -->
     <xsl:param name="target" select="."/>
     <xsl:param name="refelem" select="local-name($target)"/>
  
  
  

Reply via email to