Re: [xslt] [PATCH] xsltGetSpecialNamespace fallback with default namespace

On Sun, Nov 30, 2008 at 07:39:33PM +0000, Martin (gzlist) wrote:
> <>
> If xsltGetSpecialNamespace is given a namespace to use as the default
> and a node that already has a different default namespace, it ends up
> with funky (and invalid) XML like:
> <div xmlns="urn:ns:a" xmlns:(null)_1="urn:ns:b">Some<(null)_1:br/>text.</div>
> Presumably this could make some stdio implementations fall over, not
> just use the string "(null)".

  Right, good catch, but I changed it sligthly to initialize to "ns"
because xmlns:ns_1="..." looks way better than xmlns:_1="..." since
it makes the second part of the QName a name starting with a letter.
There is no risk of clash because we check for namespaces in scope
  Applied and pushed to git,

  thanks a lot !


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]