[xslt] [PATCH] xsltGetSpecialNamespace fallback with default namespace



<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)".

Patch attached.

Martin

Attachment: xsltGetSpecialNamespace_fallback.patch
Description: Binary data



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