After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 172023 - Compiles Invalid XSLT "match" attribute in apply-templates
Compiles Invalid XSLT "match" attribute in apply-templates
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
1.1.4
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-29 20:31 UTC by Bill Humphries
Modified: 2021-07-05 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bill Humphries 2005-03-29 20:31:07 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.
Comment 1 Daniel Veillard 2005-03-29 20:42:03 UTC
no because I just checked somehow the content model. I didn't go though the
full validation thing, still TODO.

Daniel
Comment 2 GNOME Infrastructure Team 2021-07-05 11:00:47 UTC
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.