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



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



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