2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.XML / Mono.Xml.Xsl / XslStylesheet.cs
index df0ca33bfdaddfe6da2ae637771c66e80c9c87b4..6cf9dedda90129e071d32b4a4cda992c41b0ebe7 100644 (file)
@@ -9,6 +9,27 @@
 // (C) 2003 Atsushi Enomoto
 //
 
+//
+// 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.
+//
+
 using System;
 using System.Collections;
 using System.Collections.Specialized;
@@ -30,7 +51,7 @@ namespace Mono.Xml.Xsl {
                
                Compiler c;
 
-               XslStylesheet importer;
+//             XslStylesheet importer;
                // Top-level elements
                ArrayList imports = new ArrayList ();
                // [QName]=>XmlSpace
@@ -50,22 +71,6 @@ namespace Mono.Xml.Xsl {
                XmlQualifiedName [] excludeResultPrefixes;
                ArrayList stylesheetNamespaces = new ArrayList ();
 
-               // below are newly introduced in XSLT 2.0
-               //  elements::
-               // xsl:import-schema should be interpreted into it.
-               XmlSchemaCollection schemas = new XmlSchemaCollection ();
-               // [QName]=>XslCharacterMap
-               Hashtable characterMap = new Hashtable ();
-               // [QName]=>XslDateFormat
-               Hashtable dateFormats = new Hashtable ();
-               // [QName]=>XslFunction
-               Hashtable functions = new Hashtable ();
-               // [QName]=>XslSortKey
-               Hashtable sortKeys = new Hashtable ();
-               //  attributes::
-               string xpathDefaultNamespace = "";
-               XslDefaultValidation defaultValidation = XslDefaultValidation.Lax;
-
                public string BaseUri {
                        get { return c.Input.BaseURI; }
                }
@@ -231,7 +236,6 @@ namespace Mono.Xml.Xsl {
                        }
 
                        if (o != null) {
-                               XmlSpace space = (XmlSpace) o;
                                switch ((XmlSpace) o) {
                                case XmlSpace.Preserve:
                                        return true;
@@ -282,7 +286,7 @@ namespace Mono.Xml.Xsl {
 
                private XslStylesheet (Compiler c, XslStylesheet importer) : this (c)
                {
-                       this.importer = importer;
+//                     this.importer = importer;
                }
                
                private void HandleInclude (string href)
@@ -424,7 +428,7 @@ namespace Mono.Xml.Xsl {
        }
 
        
-       public enum XslDefaultValidation
+       internal enum XslDefaultValidation
        {
                Strict,
                Lax,