예제 #1
0
 private XsltCompileContext GetValueOfContext()
 {
     if (_valueOfContext == null)
     {
         _valueOfContext = new XsltCompileContext();
     }
     return(_valueOfContext);
 }
예제 #2
0
 private XsltCompileContext GetMatchesContext()
 {
     if (_matchesContext == null)
     {
         _matchesContext = new XsltCompileContext();
     }
     return(_matchesContext);
 }
예제 #3
0
        internal Query GetValueQuery(int key, XsltCompileContext?context)
        {
            Debug.Assert(key != Compiler.InvalidQueryKey);
            TheQuery theQuery = _queryStore[key];

            theQuery.CompiledQuery.CheckErrors();
            Query expr = _queryList[key];

            if (context == null)
            {
                context = new XsltCompileContext(theQuery._ScopeManager, this);
            }
            else
            {
                context.Reinitialize(theQuery._ScopeManager, this);
            }

            expr.SetXsltContext(context);
            return(expr);
        }