#1084 xhtml: leaks xmlns:saxon to output for anchors

output: HTML
XSL (1066)

A Debian user reported, that when processing a DocBook file with the XHTML stylesheets, the anchors in the output contain xmlns:saxon namespace attributes. This is caused by the anchor template containing:

<xslo:if xmlns:xslo="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="..." ...

The html2xhtml.xsl stylesheet probably just misses to exclude the saxon namespace too. This prevents the xmlns:saxon namespace attribute in the anchor template in xhtml/html.xsl. I would further suggest to replace the <xslo:...> workaround using namepsace-aliasing by using <xsl:element name="xsl:if" namespace="..."/>.

Patch attached. If you agree, I submit.


  • Daniel Leidert

    Daniel Leidert - 2009-12-28

    proposed patch

  • Mauritz Jeanson

    Mauritz Jeanson - 2010-07-28

    Simply adding 'saxon' to exclude-result-prefixes seems to be enough. But the other suggestion is fine too, as far as I can tell.

    The patch should also be applied to xhtml-1_1/html2xhtml.xsl.

  • Robert Stayton

    Robert Stayton - 2010-08-09

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


  • Robert Stayton

    Robert Stayton - 2010-08-09
    • assigned_to: nobody --> bobstayton
    • status: open --> pending-fixed
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks