Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#646 index/indexentry produces dt without a dl

output: HTML
closed-fixed
XSL (1066)
5
2005-05-10
2005-05-06
Petr Pajas
No

If an index element contains indexentries without a indexdiv
(which is allowed by DocBook XML), then resulting dd/dt
HTML/XHTML elements have no dl parent which makes the
output *HTML invalid.

Discussion

  • Logged In: YES
    user_id=118135

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
    • assigned_to: nobody --> xmldoc
    • status: open --> pending-fixed
     
  • Petr Pajas
    Petr Pajas
    2005-05-09

    Logged In: YES
    user_id=430096

    I just downloaded and tried the snapshot, but the problem
    remains. I'm trying with the following document:

    <?xml version="1.0"?>
    <article>
    <title>foo</title>
    <index>
    <title>Index</title>
    <indexentry><primaryie>a</primaryie></indexentry>
    </index>
    </article>

    I get:

    <html>
    ....
    <div class="index"><div class="titlepage">
    <div><div><h2 class="title">
    <a name="id2455002"></a>
    Index</h2></div></div></div>
    <dt>a</dt></div></div></body>
    </html>

    (<dt> is invalid content for <div>).

    This is not a serious problem.

    Cheers,
    Petr

     
  • Petr Pajas
    Petr Pajas
    2005-05-09

    • status: pending-fixed --> open-fixed
     
  • Logged In: YES
    user_id=118135

    Hi again Petr,

    Sorry, the snapshot build was temporarily broken and the
    snapshot hadn't actually got updated after I checked in the fix.
    I've now got it working again. When you have time, please
    check with the latest -

    http://docbook.sourceforge.net/snapshots/

    Regards,

    --Mike

     
    • status: open-fixed --> pending-fixed
     
  • Petr Pajas
    Petr Pajas
    2005-05-10

    • status: pending-fixed --> open-fixed
     
  • Petr Pajas
    Petr Pajas
    2005-05-10

    Logged In: YES
    user_id=430096

    Works like a charm. I guess this is resolved. Thanks,
    -- Petr

     
    • status: open-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=118135

    Petr, thanks for the bug report and follow-up.