Re: [PATCH] Re: xsl:use-attribute-sets in libxslt not conforming to the XSLT spec

Nick Wellnhofer <[email protected]> Tue, 12 Feb 2019 13:45:42 +0100
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On 12/02/2019 10:05, Alexey Neyman wrote:
> I don't think this removed block needs to be restored; instead, I think, the 
> xsltAttrListTemplateProcess() should process the attribute sets first and 
> then, iterating over LRE attributes, override the values if there is a 
> duplicate attribute. Instead of constructing the attribute list itself, it can 
> use xmlSetNsProp() which will either create a new attribute, or set the value 
> on an existing one. xsltAttribute() already uses xmlSetNsProp() for that purpose.

That's also the approach I came up with. Should be fixed with:

https://gitlab.gnome.org/GNOME/libxslt/commit/65f59eb13dc8cceff89534fdb691881a1811738f

Nick