one more libxslt bug

That’s not funny. Again the namespaces, again a libxslt bug. Libxslt is confused when XSLT and XML use the same prefix with different URI.

The following stylesheet adds attribute “y:foo” to each element, the
full name of the attribute is “{y:y:y}foo”.

Apply the stylesheet to the following XML.

kz[Zig*ܶl-mo,!תp+^-ms&i*[$- e[j 

Result is the following.

The full name of the “foo” attribute is “{y2:y2:y2}foo”, but should be
“{y:y:y}foo”.

By the way, saxon generates the following:

I’ve submitted the bug to the libxslt team.

Leave a Reply