diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2005-12-25 18:38:08 +0300 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2005-12-25 18:38:08 +0300 |
commit | 21a98ddcff1ba3e74d9e1e41a1080b98a9365f5c (patch) | |
tree | 3f1a9efa7e777132b565b21360d22c69f125405b /mcs/class/System.XML/Mono.Xml.Xsl | |
parent | e76f69132cf3f4a539813e3e5b69261df5cdd75d (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/Mono.Xml.Xsl')
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.XML/Mono.Xml.Xsl/XslOutput.cs | 9 |
2 files changed, 15 insertions, 0 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'" + |