OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: XSL customization : chunking new element atsect1level


Jirka,

I've added code for my elements in everywhere in chunk.xsl that had code
for <sect1>. That's why I'm stumped...

FWIW, here's my chunk-all-top-level-sections template:

<xsl:template name="chunk-all-top-level-sections">
  <xsl:variable name="prev"
    select="(preceding::book[1]
             |preceding::preface[1]
             |preceding::chapter[1]
             |preceding::appendix[1]
             |preceding::part[1]
             |preceding::reference[1]
             |preceding::refentry[1]
             |preceding::colophon[1]
             |preceding::sect1[1]
             |preceding::commandlineprogramdef[1]
             |preceding::guiprogramdef[1]
             |preceding::apidef[1]
             |preceding::envardef[1]
             |preceding::section[name(parent::*) != 'section'][1]
             |preceding::article[1]
             |preceding::bibliography[1]
             |preceding::glossary[1]
             |preceding::index[1]
             |preceding::setindex[1]
             |ancestor::set
             |ancestor::book[1]
             |ancestor::preface[1]
             |ancestor::chapter[1]
             |ancestor::appendix[1]
             |ancestor::part[1]
             |ancestor::reference[1]
             |ancestor::article[1])[last()]"/>

  <xsl:variable name="next"
    select="(following::book[1]
             |following::preface[1]
             |following::chapter[1]
             |following::appendix[1]
             |following::part[1]
             |following::reference[1]
             |following::refentry[1]
             |following::colophon[1]
             |following::sect1[1]
             |following::commandlineprogramdef[1]
             |following::guiprogramdef[1]
             |following::apidef[1]
             |following::envardef[1]
             |following::section[name(parent::*) != 'section'][1]
             |following::bibliography[1]
             |following::glossary[1]
             |following::index[1]
             |following::article[1]
             |following::setindex[1]
             |descendant::book[1]
             |descendant::preface[1]
             |descendant::chapter[1]
             |descendant::appendix[1]
             |descendant::article[1]
             |descendant::bibliography[1]
             |descendant::glossary[1]
             |descendant::index[1]
             |descendant::colophon[1]
             |descendant::setindex[1]
             |descendant::part[1]
             |descendant::reference[1]
             |descendant::refentry[1]
             |descendant::sect1[1]
             |descendant::commandlineprogramdef[1]
             |descendant::guiprogramdef[1]
             |descendant::apidef[1]
             |descendant::envardef[1]
             |descendant::section[name(parent::*) != 'section'][1])[1]"/>


Any idea appreciated,

Gershon

On Mon, 12 Nov 2001, Jirka Kosek wrote:

> You should also modify chunk-all-top-level-sections template in
> chunk.xsl. This template is core of chunking. (In fact there are several
> templates like this, each of them is designed for different granularity
> of chunks.)



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC