GNOME Bugzilla – Bug 172023
Compiles Invalid XSLT "match" attribute in apply-templates
Last modified: 2021-07-05 11:00:47 UTC
Please describe the problem: Does not return error when incorrect attribute is used in apply-templates Steps to reproduce: Create: <?xml version='1.0' encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:apply-templates match="*" /> </xsl:template> </xsl:stylesheet> Load and run stylesheet. Actual results: XSLT interprets <xsl:apply-templates match="*" /> as <xsl:apply-templates /> Expected results: LibXSLT should had returned an error when compiling the style sheet. Does this happen every time? Yes Other information: This is similar to bug 160402, which Daniel addressed today in CVS, so this bug may be fixed as well.
no because I just checked somehow the content model. I didn't go though the full validation thing, still TODO. Daniel
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.