docbook-apps

  • 1.  Webhelp - namespace issue with DocBook XSL 1.79.0

    Posted 12-22-2015 16:32
    Hi

    I am seeing an issue with the XHTML namespace when outputting Webhelp
    using the DocBook XSL 1.79.0 sylesheets.
    (The issue also affects version 1.78.1).

    With the titlepage templates, I am seeing an empty xmlns attribute
    output on the containing div, and all the titles have an additional
    XHTML namespace declaration, which isn't needed because that is already
    output on the element. For example:




    Preface






    This causes the XHTML output to be invalid.

    Adding the default XHTML namespace declaration
    (xmlns="http://www.w3.org/1999/xhtml") to the
    webhelp/xsl/titlepage.templates.xsl file fixes the problem.

    I noticed the default namespace declaration was also missing from
    webhelp/xsl/webhelp.xsl and webhelp/xsl/webhelp-common.xsl, and these
    files might also need it although I've not seen any ill effects.

    It would be great if this could be fixed for the 1.79.1 release.

    Thanks




  • 2.  Re: [docbook-apps] Webhelp - namespace issue with DocBook XSL 1.79.0

    Posted 12-22-2015 19:58
    Thanks for the report. I was just about to release 1.79.1, but I'll fix
    this before doing so.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 12/22/2015 8:31 AM, Andy Hatton wrote:
    > Hi
    >
    > I am seeing an issue with the XHTML namespace when outputting Webhelp
    > using the DocBook XSL 1.79.0 sylesheets.
    > (The issue also affects version 1.78.1).
    >
    > With the titlepage templates, I am seeing an empty xmlns attribute
    > output on the containing div, and all the titles have an additional
    > XHTML namespace declaration, which isn't needed because that is already
    > output on the element. For example:
    >
    >

    >

    >


    > Preface


    >

    >

    >

    >
    > This causes the XHTML output to be invalid.
    >
    > Adding the default XHTML namespace declaration
    > (xmlns="http://www.w3.org/1999/xhtml") to the
    > webhelp/xsl/titlepage.templates.xsl file fixes the problem.
    >
    > I noticed the default namespace declaration was also missing from
    > webhelp/xsl/webhelp.xsl and webhelp/xsl/webhelp-common.xsl, and these
    > files might also need it although I've not seen any ill effects.
    >
    > It would be great if this could be fixed for the 1.79.1 release.
    >
    > Thanks
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >