diff options
Diffstat (limited to 'mcs/class/System.XML')
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 (); |