SourceForge has been redesigned. Learn more.

#1266 docbook-xsl-ns XHTML 1.1does not properly end variablelist


When the XSL stylesheet docbook-xsl-ns/xhtml-1_1/docbook.xsl is applied to the attached minimal example file crculver-example.xml, the last paragraph is erroneously set in bold. Examining the XHTML source reveals that this is because the <strong> tag continues to be added to XHTML output even after processing of the DocBook <variablelist> into an XHTML <table> is complete.

The version of docbook-xsl-ns used is 1.76.0~RC1+dfsg-1.


  • Christopher Culver

    Minimal example file for erroneous processing of <variablelist> in docbook-xsl-ns/xhtml-1_1/docbook.xsll

  • Robert Stayton

    Robert Stayton - 2012-11-26

    Well, I don't think the DocBook stylesheet is doing anything wrong here. That variablelist in the example.xml file has an empty title element. That element generates an empty <strong> element in the output, as it should. It is the empty strong element that seems to confuse HTML browsers. Adding a letter to strong, or removing strong seems to fix the errant bolding. Since the strong element is allowed to be empty in HTML, I think that indicates a bug in the browser. The workaround is to remove the empty title from the variablelist. I don't think that is something that the DocBook stylesheet should try to do.

  • Robert Stayton

    Robert Stayton - 2012-11-26
    • assigned_to: nobody --> bobstayton
  • Robert Stayton

    Robert Stayton - 2012-12-06

    I'm closing this bug as it appears to not be a problem with DocBook XSL.

  • Robert Stayton

    Robert Stayton - 2012-12-06
    • status: open --> closed-invalid

Log in to post a comment.