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:
authorGert Driesen <drieseng@users.sourceforge.net>2005-12-25 18:38:08 +0300
committerGert Driesen <drieseng@users.sourceforge.net>2005-12-25 18:38:08 +0300
commit21a98ddcff1ba3e74d9e1e41a1080b98a9365f5c (patch)
tree3f1a9efa7e777132b565b21360d22c69f125405b /mcs/class/System.XML
parente76f69132cf3f4a539813e3e5b69261df5cdd75d (diff)
* XslTransformTests.cs: Enabled forwards compatible tests.
* XslOutput.cs: Do not report error for unknown value for "standalone" and "omit-xml-declaration" attributes, and extranous attributes if stylesheet version is not "1.0". svn path=/trunk/mcs/; revision=54836
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog6
-rw-r--r--mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs9
-rw-r--r--mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog4
-rw-r--r--mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs4
4 files changed, 19 insertions, 4 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog b/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
index 6641c25340c..871d017e93a 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-24 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * XslOutput.cs: Do not report error for unknown value for "standalone"
+ and "omit-xml-declaration" attributes, and extranous attributes if
+ stylesheet version is not "1.0".
+
2005-12-24 Atsushi Enomoto <atsushi@ximian.com>
* Compiler.cs : pass stylesheet version to XslOutput to determine
diff --git a/mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs b/mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs
index 842dc1d4002..e62a2174982 100644
--- a/mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs
+++ b/mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs
@@ -215,6 +215,9 @@ namespace Mono.Xml.Xsl
this.standalone = StandaloneType.NO;
break;
default:
+ if (stylesheetVersion != "1.0")
+ break;
+
IXmlLineInfo li = nav as IXmlLineInfo;
throw new XsltCompileException (new XsltException (
"'" + value + "' is an invalid value for 'standalone'" +
@@ -244,6 +247,9 @@ namespace Mono.Xml.Xsl
this.omitXmlDeclaration = false;
break;
default:
+ if (stylesheetVersion != "1.0")
+ break;
+
IXmlLineInfo li = nav as IXmlLineInfo;
throw new XsltCompileException (new XsltException (
"'" + value + "' is an invalid value for 'omit-xml-declaration'" +
@@ -273,6 +279,9 @@ namespace Mono.Xml.Xsl
}
break;
default:
+ if (stylesheetVersion != "1.0")
+ break;
+
IXmlLineInfo li = nav as IXmlLineInfo;
throw new XsltCompileException (new XsltException (
"'" + nav.LocalName + "' is an invalid attribute for 'output'" +
diff --git a/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog b/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog
index 94fdb1c640b..776b07c304b 100644
--- a/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog
+++ b/mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-24 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * XslTransformTests.cs: Enabled forwards compatible tests.
+
2005-12-23 Gert Driesen <drieseng@users.sourceforge.net>
* XslTransformTests.cs: Added forwards compatible tests.
diff --git a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
index b9497563af0..758d0fded93 100644
--- a/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
@@ -516,7 +516,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
- [Category ("NotWorking")]
public void Output_Standalone_ForwardsCompatible ()
{
StringWriter sw = new StringWriter ();
@@ -632,7 +631,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
- [Category ("NotWorking")]
public void Output_OmitXmlDeclaration_ForwardsCompatible ()
{
StringWriter sw = new StringWriter ();
@@ -1255,7 +1253,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
- [Category ("NotWorking")]
public void Output_Indent_ForwardsCompatible ()
{
StringWriter sw = new StringWriter ();
@@ -1712,7 +1709,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
- [Category ("NotWorking")]
public void Output_Unknown_Attribute_ForwardsCompatible ()
{
StringWriter sw = new StringWriter ();