From: SourceForge.net <no...@so...> - 2010-07-28 08:08:57
|
Bugs item #2922483, was opened at 2009-12-28 21:43 Message generated for change (Comment added) made by mzjn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2922483&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: HTML Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Leidert (dleidert) Assigned to: Nobody/Anonymous (nobody) Summary: xhtml: leaks xmlns:saxon to output for anchors Initial Comment: 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="..." ... <a.../> </xslo:if> 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. ---------------------------------------------------------------------- >Comment By: Mauritz Jeanson (mzjn) Date: 2010-07-28 10:08 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2922483&group_id=21935 |