Author: atsushi
Date: 2005-06-27 04:31:32 -0400 (Mon, 27 Jun 2005)
New Revision: 46536
Added:
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltSettings.cs
Modified:
trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltArgumentList.cs
Log:
2005-06-27 Atsushi Enomoto <[EMAIL PROTECTED]>
* XsltSettings.cs,
XsltMessageEncounteredEventArgs.cs,
XsltMessageEncounteredEventHandler.cs : new files for net_2_0.
* XsltArgumentList.cs : added 2.0 message event.
Modified: trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog 2005-06-27 06:33:52 UTC
(rev 46535)
+++ trunk/mcs/class/System.XML/System.Xml.Xsl/ChangeLog 2005-06-27 08:31:32 UTC
(rev 46536)
@@ -1,3 +1,10 @@
+2005-06-27 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XsltSettings.cs,
+ XsltMessageEncounteredEventArgs.cs,
+ XsltMessageEncounteredEventHandler.cs : new files for net_2_0.
+ * XsltArgumentList.cs : added 2.0 message event.
+
2005-04-03 Ben Maurer <[EMAIL PROTECTED]>
* *.cs: Kill unmanaged xslt and the multiplexing hack.
Modified: trunk/mcs/class/System.XML/System.Xml.Xsl/XsltArgumentList.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Xsl/XsltArgumentList.cs
2005-06-27 06:33:52 UTC (rev 46535)
+++ trunk/mcs/class/System.XML/System.Xml.Xsl/XsltArgumentList.cs
2005-06-27 08:31:32 UTC (rev 46536)
@@ -50,6 +50,14 @@
#endregion
+ #region Event
+#if NET_2_0
+
+ public event XsltMessageEncounteredEventHandler
XsltMessageEncountered;
+
+#endif
+ #endregion
+
#region Methods
public void AddExtensionObject (string namespaceUri, object
extension)
Added:
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
===================================================================
---
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
2005-06-27 06:33:52 UTC (rev 46535)
+++
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
2005-06-27 08:31:32 UTC (rev 46536)
@@ -0,0 +1,50 @@
+//
+// XsltMessageEncounteredEventArgs.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2005, Novell Inc,
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+
+using System;
+
+namespace System.Xml.Xsl
+{
+ public class XsltMessageEncounteredEventArgs : EventArgs
+ {
+ string message;
+
+ public string Message {
+ get { return message; }
+ }
+
+ internal XsltMessageEncounteredEventArgs (string message)
+ {
+ this.message = message;
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventArgs.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
===================================================================
---
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
2005-06-27 06:33:52 UTC (rev 46535)
+++
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
2005-06-27 08:31:32 UTC (rev 46536)
@@ -0,0 +1,36 @@
+//
+// XsltMessageEncounteredEventHandler.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2005 Novell Inc,
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Xml.Xsl
+{
+ public delegate void XsltMessageEncounteredEventHandler (
+ Object sender, XsltMessageEncounteredEventArgs e);
+}
+#endif
Property changes on:
trunk/mcs/class/System.XML/System.Xml.Xsl/XsltMessageEncounteredEventHandler.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/mcs/class/System.XML/System.Xml.Xsl/XsltSettings.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.Xsl/XsltSettings.cs 2005-06-27
06:33:52 UTC (rev 46535)
+++ trunk/mcs/class/System.XML/System.Xml.Xsl/XsltSettings.cs 2005-06-27
08:31:32 UTC (rev 46536)
@@ -0,0 +1,87 @@
+//
+// XsltSettings.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2005 Novell Inc,
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+namespace System.Xml.Xsl
+{
+ public class XsltSettings
+ {
+ static readonly XsltSettings defaultSettings;
+ static readonly XsltSettings trustedXslt;
+
+ static XsltSettings ()
+ {
+ defaultSettings = new XsltSettings (true);
+ trustedXslt = new XsltSettings (true);
+ trustedXslt.enableDocument = true;
+ trustedXslt.enableScript = true;
+ }
+
+ public static XsltSettings Default {
+ get { return defaultSettings; }
+ }
+
+ public static XsltSettings TrustedXslt {
+ get { return trustedXslt; }
+ }
+
+ bool readOnly;
+ bool enableDocument;
+ bool enableScript;
+
+ public XsltSettings ()
+ : this (false)
+ {
+ }
+
+ private XsltSettings (bool readOnly)
+ {
+ this.readOnly = readOnly;
+ }
+
+ public bool EnableDocumentFunction {
+ get { return enableDocument; }
+ set {
+ if (!readOnly)
+ enableDocument = value;
+ // otherwise silently ignored.
+ }
+ }
+
+ public bool EnableScript {
+ get { return enableScript; }
+ set {
+ if (!readOnly)
+ enableScript = value;
+ // otherwise silently ignored.
+ }
+ }
+ }
+}
+#endif
Property changes on: trunk/mcs/class/System.XML/System.Xml.Xsl/XsltSettings.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches