docbook-apps

  • 1.  Anchors in XHTML output

    Posted 08-23-2006 17:41
    Hi docbook-apps -

    When I link to a section in the middle of a chunk, in XHTML output, I get
    a correct link, but I do not get an anchor on the actual section. Full
    example below. Am I not marking up the section properly, or the link, or
    is this a bug/missing feature in the XHTML templates? Does it work in the
    HTML templates?

    Thanks!
    -- Dan



    "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
    <book id="BadAnchors">
    <bookinfo>

    </bookinfo>

    <chapter id="c1">

    <para>Text text text.</para>


    <para>Text text text.</para>



    <para>Text text text.</para>



    <para>Text text text.</para>

    </chapter>

    <chapter id="c2">



    <para>Text text text.</para>



    <para>Text text text.</para>
    <para>A link, a link! My kingdom for a
    link!</para>



    <para>Text text text.</para>

    </chapter>

    </book>



  • 2.  Re: [docbook-apps] Anchors in XHTML output

    Posted 08-23-2006 17:45

    Clarifying my question with visuals: The link becomes, correctly, href="c1.html#c1c2">a link!, but for that to work, c1.html also needs
    to contain ... near the beginning of that section. It
    doesn't.

    Thanks for any assistance you can provide!
    -- Dan

    On Wed, 23 Aug 2006, Dan Sanderson wrote:

    > Hi docbook-apps -
    >
    > When I link to a section in the middle of a chunk, in XHTML output, I get a
    > correct link, but I do not get an anchor on the actual section. Full example
    > below. Am I not marking up the section properly, or the link, or is this a
    > bug/missing feature in the XHTML templates? Does it work in the HTML
    > templates?
    >
    > Thanks!
    > -- Dan
    >
    >
    > >
    > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
    > <book id="BadAnchors">
    > <bookinfo>
    >
    > </bookinfo>
    >
    > <chapter id="c1">
    >
    > <para>Text text text.</para>
    >

    >
    > <para>Text text text.</para>
    >

    >

    >
    > <para>Text text text.</para>
    >

    >

    >
    > <para>Text text text.</para>
    >

    > </chapter>
    >
    > <chapter id="c2">
    >
    >

    >
    > <para>Text text text.</para>
    >

    >

    >
    > <para>Text text text.</para>
    > <para>A link, a link! My kingdom for a
    > link!</para>
    >

    >

    >
    > <para>Text text text.</para>
    >

    > </chapter>
    >
    > </book>
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >