Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-12-21 08:31:47 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-12-21 08:31:47 +0300
commit042e95f3dcfa48622fd59e17829c2ad9be74394b (patch)
tree4ff960618f98031d02024bc32852a91ec8d97ff3 /mcs/class/System.XML
parent6bb3e161cc704d5f5d2ded846ff449e41895120a (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/ChangeLog5
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs4
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);