docbook-apps

  • 1.  mediaobject in lots tocs

    Posted 08-21-2009 08:10
    I have some SVG 'diagrams' in mediaobjects

    <xsl:param name="generate.toc">
    book toc, title, mediaobject
    chapter toc, title, figure, table, mediobject
    sect1 toc,title

    </xsl:param>

    Doesn't include them in the tocs?

    Is this possible please?
    db5, 1.75 stylesheets.

    I see them as no different to figures?

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 2.  RE: [docbook-apps] mediaobject in lots tocs

    Posted 08-21-2009 16:11
    Dave,

    Figures are formal objects, that is, they have titles. Mediaobjects are not, and thus do not have titles. In general, only formal objects show up in lists of things that are auto generated. If you want a mediaobject to show up in a list, the general practice is to wrap it in a figure.

    Larry Rowland




  • 3.  Re: [docbook-apps] mediaobject in lots tocs

    Posted 08-21-2009 17:13
    On 21/08/09 17:10, Rowland, Larry wrote:
    > Dave,
    >
    > Figures are formal objects, that is, they have titles. Mediaobjects are not, and thus do not have titles.
    In general, only formal objects show up in lists of things that are auto
    generated.

    Well that works, but doesn't meet my need.
    Thanks Larry

    Why only formal objects? Arbitrary decision?
    Anyone got the history?

    regards


    > I have some SVG 'diagrams' in mediaobjects
    >
    > <xsl:param name="generate.toc">
    > book toc, title, mediaobject
    > chapter toc, title, figure, table, mediobject
    > sect1 toc,title
    >
    > </xsl:param>
    >
    > Doesn't include them in the tocs?
    >
    > Is this possible please?
    > db5, 1.75 stylesheets.
    >
    > I see them as no different to figures?
    >
    > regards
    >



    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 4.  RE: [docbook-apps] mediaobject in lots tocs

    Posted 08-21-2009 17:35
    The LOT element means "List of Titles." If you are going to provide a list of things, having a title of them makes it much more usable. If there is no title, you end up with a list of page numbers, which makes knowing which one to go to pretty difficult. IMHO.

    LRR




  • 5.  Re: [docbook-apps] mediaobject in lots tocs

    Posted 08-21-2009 18:33
    On 21/08/09 18:35, Rowland, Larry wrote:
    > The LOT element means "List of Titles." If you are going to provide a list of things, having a title of them makes it much more usable.
    >If there is no title, you end up with a list of page numbers, which
    makes knowing which one to go to pretty difficult. IMHO.


    List of graphs in my case. SVG wrapped in mediaobjects.

    No more difficult than spotting figures, or anything else in the
    http://docbook.sourceforge.net/release/xsl/current/doc/html/generate.toc.html
    listing?

    it's just an element name. If it's there, include it.



    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk