diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-12-21 08:31:47 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-12-21 08:31:47 +0300 |
commit | 042e95f3dcfa48622fd59e17829c2ad9be74394b (patch) | |
tree | 4ff960618f98031d02024bc32852a91ec8d97ff3 /mcs/class/System.XML | |
parent | 6bb3e161cc704d5f5d2ded846ff449e41895120a (diff) |
2005-12-21 Atsushi Enomoto <atsushi@ximian.com>
* XslTemplate.cs : don't check name and mode attributes on
non-'xsl:template' element. This should fix bug #77051.
svn path=/trunk/mcs/; revision=54674
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog b/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog index 638b625ed3d..c3814fa3b25 100644 --- a/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog +++ b/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog @@ -1,3 +1,8 @@ +2005-12-21 Atsushi Enomoto <atsushi@ximian.com> + + * XslTemplate.cs : don't check name and mode attributes on + non-'xsl:template' element. This should fix bug #77051. + 2005-12-13 Andrew Skiba <andrews@mainsoft.com> * XslDecimalFormat.jvm.cs: set correct defaults for NaN and Infinity diff --git a/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs b/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs index f01f35921e7..19865c2ba24 100644 --- a/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs +++ b/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs @@ -257,7 +257,9 @@ namespace Mono.Xml.Xsl { c.PushScope (); - if (c.Input.MoveToAttribute ("mode", String.Empty)) { + if (c.Input.Name == "template" && + c.Input.NamespaceURI == Compiler.XsltNamespace && + c.Input.MoveToAttribute ("mode", String.Empty)) { c.Input.MoveToParent (); if (!c.Input.MoveToAttribute ("match", String.Empty)) throw new XsltCompileException ("XSLT 'template' element must not have 'mode' attribute when it does not have 'match' attribute.", null, c.Input); |