// (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;
Compiler c;
- XslStylesheet importer;
+// XslStylesheet importer;
// Top-level elements
ArrayList imports = new ArrayList ();
// [QName]=>XmlSpace
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; }
}
}
if (o != null) {
- XmlSpace space = (XmlSpace) o;
switch ((XmlSpace) o) {
case XmlSpace.Preserve:
return true;
private XslStylesheet (Compiler c, XslStylesheet importer) : this (c)
{
- this.importer = importer;
+// this.importer = importer;
}
private void HandleInclude (string href)
}
- public enum XslDefaultValidation
+ internal enum XslDefaultValidation
{
Strict,
Lax,