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



On Sun, Nov 30, 2008 at 07:39:33PM +0000, Martin (gzlist) wrote:
> <http://www.xmlsoft.org/XSLT/html/libxslt-namespaces.html#xsltGetSpecialNamespace>
> 
> 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
anyway.
  Applied and pushed to git,

  thanks a lot !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


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