docbook-apps

  • 1.  Bad index generation.

    Posted 03-26-2007 22:10
    Hi,

    Using DocBook XSL Stylesheets Vsnapshot_6761.

    Playing with the index generation code I found something that looks a bug.

    Having an index tag like this:

    <index type="package"/>

    and indexterm entries like this

    <indexterm zone="ch-system-bash" type="package">
    <primary>Bash</primary>
    </indexterm>

    <indexterm zone="ch-tools-bash" type="package">
    <primary>Bash</primary>
    <secondary>tools</secondary>
    </indexterm>

    when rendering the book using

    $ xsltproc --xinclude --nonet -stringparam generate.index 1
    snapshot/xhtml/docbook.xsl index.xml > book.html

    the Index is generated properly, but when using

    $ xsltproc --xinclude --nonet -stringparam generate.index 1
    -stringparam index.on.type 1 snapshot/xhtml/docbook.xsl index.xml > book.html

    the links on the Index entries are lost. The HTML generated looks like this:





    B




    Bash,




    tools,










    --
    Manuel Canales Esparcia
    Usuario de LFS nº2886: http://www.linuxfromscratch.org
    LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
    TLDP-ES: http://es.tldp.org



  • 2.  RE: [docbook-apps] Bad index generation.

    Posted 03-27-2007 17:46
    > -----Original Message-----
    > From: M.Canales.es
    >
    > Having an index tag like this:
    >
    > <index type="package"/>
    >
    > and indexterm entries like this
    >
    > <indexterm zone="ch-system-bash" type="package">
    > <primary>Bash</primary>
    > </indexterm>

    > when rendering the book using
    >
    > $ xsltproc --xinclude --nonet -stringparam generate.index 1
    > snapshot/xhtml/docbook.xsl index.xml > book.html
    >
    > the Index is generated properly, but when using
    >
    > $ xsltproc --xinclude --nonet -stringparam generate.index 1
    > -stringparam index.on.type 1 snapshot/xhtml/docbook.xsl
    > index.xml > book.html
    >
    > the links on the Index entries are lost.


    There is a bug report about this:
    http://sourceforge.net/tracker/index.php?func=detail&aid=1680836&group_id=21
    935&atid=373747

    I have looked into it, so far without success. Some subtle error, related to
    the scope entity (declared in common/entities.ent and used in autoidx.xsl),
    manifests itself when @zone and @type are used and index.on.type = 1.

    /MJ





  • 3.  Re: [docbook-apps] Bad index generation.

    Posted 03-27-2007 18:06
    El Martes, 27 de Marzo de 2007 19:45, Mauritz Jeanson escribió:

    > I have looked into it, so far without success. Some subtle error, related
    > to the scope entity (declared in common/entities.ent and used in
    > autoidx.xsl),

    That entities are used in html and fo templates, but not in xhtml templates
    where the code is harcoded in autoidx.xsl, at least in Vsnapshot_6761.
    Maybe a bug in xhtml templates generation?

    But yes, the index generation bug if here also using the html or fo
    stylesheets.

    > manifests itself when @zone and @type are used and
    > index.on.type = 1.

    Right.


    --
    Manuel Canales Esparcia
    Usuario de LFS nº2886: http://www.linuxfromscratch.org
    LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
    TLDP-ES: http://es.tldp.org



  • 4.  RE: [docbook-apps] Bad index generation.

    Posted 03-27-2007 18:16
    > -----Original Message-----
    > From: M.Canales.es
    >
    > That entities are used in html and fo templates, but not in
    > xhtml templates
    > where the code is harcoded in autoidx.xsl, at least in
    > Vsnapshot_6761.
    > Maybe a bug in xhtml templates generation?


    No, it is not a bug. The XHTML stylesheets are generated by transforming the
    HTML stylesheets. All entity references are expanded in that process.

    /MJ





  • 5.  Re: [docbook-apps] Bad index generation.

    Posted 03-27-2007 18:34
    El Martes, 27 de Marzo de 2007 20:16, Mauritz Jeanson escribió:

    > No, it is not a bug. The XHTML stylesheets are generated by transforming
    > the HTML stylesheets. All entity references are expanded in that process.

    Oh yes, pardon.

    I was confused due that in our LFS customization layout that entities was
    manually added several time ago to have more clear and readable templates.

    --
    Manuel Canales Esparcia
    Usuario de LFS nº2886: http://www.linuxfromscratch.org
    LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
    TLDP-ES: http://es.tldp.org