docbook-apps

  • 1.  xml:id on certain DocBook elements doesn't produce id's in HTML output

    Posted 03-29-2012 12:32
    Hello list, why doesn't xml:id on such elements as or
    <screenshot> produce id's on corresponding elements in HTML output?
    --
    Kirill Churin
    Jabber: reflexing@reflexing.ru



  • 2.  Re: [docbook-apps] xml:id on certain DocBook elements doesn't produce id's in HTML output

    Posted 03-29-2012 13:24
    On 29.3.2012 14:31, Kirill Churin wrote:
    > Hello list, why doesn't xml:id on such elements as or
    > <screenshot> produce id's on corresponding elements in HTML output?

    There is no 1:1 mapping between DocBook and HTML elements. IDs in HTML
    output are created only when there is reference to element. If natural
    ID is missing in DocBook source then it is automatically created in HTML.

    Why do you need IDs on your HTML elements?

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




  • 3.  Re: [docbook-apps] xml:id on certain DocBook elements doesn't produce id's in HTML output

    Posted 03-29-2012 13:54
    On Thu, Mar 29, 2012 at 7:23 PM, Jirka Kosek <jirka@kosek.cz> wrote:
    > On 29.3.2012 14:31, Kirill Churin wrote:
    >>     Hello list, why doesn't xml:id on such elements as or
    >> <screenshot> produce id's on corresponding elements in HTML output?
    >
    > There is no 1:1 mapping between DocBook and HTML elements. IDs in HTML
    > output are created only when there is reference to element. If natural
    > ID is missing in DocBook source then it is automatically created in HTML.
    >
    > Why do you need IDs on your HTML elements?
    >
    >                                Jirka
    >
    > --
    > ------------------------------------------------------------------
    >  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
    > ------------------------------------------------------------------
    >       Professional XML consulting and training services
    >  DocBook customization, custom XSLT/XSL-FO document processing
    > ------------------------------------------------------------------
    >  OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    > ------------------------------------------------------------------
    >

    Exactly for that reason, I need to make a link to them, i.e.:

    <screenshot xml:id="some-screen" xreflabel="Nice screen">
    <mediaobject>
    <imageobject>
    <imagedata fileref="screen.png" />
    </imageobject>
    </mediaobject>
    </screenshot>

    <para>Look at the <xref linkend="some-screen" /> to see it's awesomeness.</para>

    --
    Kirill Churin
    Jabber: reflexing@reflexing.ru



  • 4.  Re: [docbook-apps] xml:id on certain DocBook elements doesn't produce id's in HTML output

    Posted 03-29-2012 14:59
    On 29.3.2012 15:53, Kirill Churin wrote:

    > <screenshot xml:id="some-screen" xreflabel="Nice screen">
    > <mediaobject>
    > <imageobject>
    > <imagedata fileref="screen.png" />
    > </imageobject>
    > </mediaobject>
    > </screenshot>
    >
    > <para>Look at the <xref linkend="some-screen" /> to see it's awesomeness.</para>

    This example is working for me. Which version of DocBook you are using?
    Which version of stylesheets? What's your output format?

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




  • 5.  Re: [docbook-apps] xml:id on certain DocBook elements doesn't produce id's in HTML output

    Posted 03-29-2012 16:10
    On Thu, Mar 29, 2012 at 8:59 PM, Jirka Kosek <jirka@kosek.cz> wrote:
    > This example is working for me. Which version of DocBook you are using?

    Well, I specify version="5.1" to my root elements, so it's DocBook 5.1, I guess.

    > Which version of stylesheets? What's your output format?

    http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/docbook.xsl

    It's Fedora's DocBook XSL-NS Stylesheets V1.76.1

    Thank you very much for helping!

    --
    Kirill Churin
    Jabber: reflexing@reflexing.ru