public XQueryCompileContext()
        {
            schemaCache = new Hashtable();
            moduleCache = new Hashtable();

            inEffectSchemas   = new XmlSchemaSet();
            inEffectVariables = new Hashtable();
            inEffectFunctions = new XQueryFunctionTable();
        }
Example #2
0
		public XQueryCompileContext ()
		{
			schemaCache = new Hashtable ();
			moduleCache = new Hashtable ();

			inEffectSchemas = new XmlSchemaSet ();
			inEffectVariables = new Hashtable ();
			inEffectFunctions = new XQueryFunctionTable ();
		}
Example #3
0
        // Constructor

        private XQueryASTCompiler(XQueryModule module, XQueryCompileOptions options, XQueryCompileContext compileContext, Evidence evidence, XQueryCommandImpl commandImpl)
        {
            this.module         = module;
            this.options        = options;
            this.compileContext = compileContext;
            this.evidence       = evidence;
            this.commandImpl    = commandImpl;

            inScopeSchemas = new XmlSchemaSet();
            localVariables = new Hashtable();
            localFunctions = new XQueryFunctionTable();
        }
Example #4
0
		// Constructor

		private XQueryASTCompiler (XQueryModule module, XQueryCompileOptions options, XQueryCompileContext compileContext, Evidence evidence, XQueryCommandImpl commandImpl)
		{
			this.module = module;
			this.options = options;
			this.compileContext = compileContext;
			this.evidence = evidence;
			this.commandImpl = commandImpl;

			inScopeSchemas = new XmlSchemaSet ();
			localVariables = new Hashtable ();
			localFunctions = new XQueryFunctionTable ();
		}
Example #5
0
		// Don't keep XQueryCompileOptions and XQueryMainModule
		// inside this class. I don't want them affect this instance
		// by being modified externally after the compilation.

		public XQueryStaticContext (
			XQueryCompileOptions options,
			XQueryCompileContext compileContext,
			ExprSequence queryBody,
			XmlSchemaSet inScopeSchemas,
			IDictionary inScopeVariables,
			XQueryFunctionTable functionSignatures,
			IXmlNamespaceResolver nsResolver,
			string defaultFunctionNamespace,
			bool preserveWhitespace,
			bool constructionSpace,
			bool defaultOrdered,
			string baseUri,
			Evidence evidence,
			XQueryCommandImpl commandImpl)
		{
			// Initialization phase.
			compat = options.Compatibility;
			nameTable = options.NameTable;
			this.queryBody = queryBody;
			this.nsResolver = nsResolver;
			this.defaultFunctionNamespace = defaultFunctionNamespace;
//			elemNSManager = new XmlNamespaceManager (nameTable);
//			funcNSManager = new XmlNamespaceManager (nameTable);
			xqueryFlagger = options.XQueryFlagger;
			xqueryStaticFlagger = options.XQueryStaticFlagger;
//			xqueryResolver = options.KnownDocumentResolver;
			knownCollections = (IDictionary) options.KnownCollections.Clone ();
			functions = functionSignatures;
			this.compileContext = compileContext;
			this.inScopeSchemas = inScopeSchemas;
			this.inScopeVariables = inScopeVariables;
			this.preserveWhitespace = preserveWhitespace;
			this.preserveConstructionSpace = constructionSpace;
			this.defaultOrdered = defaultOrdered;
			this.baseUri = baseUri;
			this.defaultCollation = options.DefaultCollation;
			// FIXME: set contextItemStaticType
			// FIXME: set extDocResolver

			this.evidence = evidence;
			this.commandImpl = commandImpl;
		}
Example #6
0
        // Don't keep XQueryCompileOptions and XQueryMainModule
        // inside this class. I don't want them affect this instance
        // by being modified externally after the compilation.

        public XQueryStaticContext(
            XQueryCompileOptions options,
            XQueryCompileContext compileContext,
            ExprSequence queryBody,
            XmlSchemaSet inScopeSchemas,
            IDictionary inScopeVariables,
            XQueryFunctionTable functionSignatures,
            IXmlNamespaceResolver nsResolver,
            string defaultFunctionNamespace,
            bool preserveWhitespace,
            bool constructionSpace,
            bool defaultOrdered,
            string baseUri,
            Evidence evidence,
            XQueryCommandImpl commandImpl)
        {
            // Initialization phase.
            compat          = options.Compatibility;
            nameTable       = options.NameTable;
            this.queryBody  = queryBody;
            this.nsResolver = nsResolver;
            this.defaultFunctionNamespace = defaultFunctionNamespace;
//			elemNSManager = new XmlNamespaceManager (nameTable);
//			funcNSManager = new XmlNamespaceManager (nameTable);
            xqueryFlagger       = options.XQueryFlagger;
            xqueryStaticFlagger = options.XQueryStaticFlagger;
//			xqueryResolver = options.KnownDocumentResolver;
            knownCollections               = (IDictionary)options.KnownCollections.Clone();
            functions                      = functionSignatures;
            this.compileContext            = compileContext;
            this.inScopeSchemas            = inScopeSchemas;
            this.inScopeVariables          = inScopeVariables;
            this.preserveWhitespace        = preserveWhitespace;
            this.preserveConstructionSpace = constructionSpace;
            this.defaultOrdered            = defaultOrdered;
            this.baseUri                   = baseUri;
            this.defaultCollation          = options.DefaultCollation;
            // FIXME: set contextItemStaticType
            // FIXME: set extDocResolver

            this.evidence    = evidence;
            this.commandImpl = commandImpl;
        }