/// <summary>
        /// Initialized a names table.
        /// </summary>
        /// <param name="parent"></param>
        public XPathXNamesTable(XPathXNamesTable parent = null)
        {
            ParentedMap<XName, TriflesXPathExtensionFunction> parentFunctions = null;
            ParentedMap<XName, TriflesXPathExtensionVariable> parentVariables = null;

            if(parent != null)
            {
                parentFunctions = parent.functions;
                parentVariables = parent.variables;
            }

            this.parent = parent;
            this.functions = ParentedMap.Create(parentFunctions);
            this.variables = ParentedMap.Create(parentVariables);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialized a names table.
        /// </summary>
        /// <param name="parent"></param>
        public XPathXNamesTable(XPathXNamesTable parent = null)
        {
            ParentedMap <XName, TriflesXPathExtensionFunction> parentFunctions = null;
            ParentedMap <XName, TriflesXPathExtensionVariable> parentVariables = null;

            if (parent != null)
            {
                parentFunctions = parent.functions;
                parentVariables = parent.variables;
            }

            this.parent    = parent;
            this.functions = ParentedMap.Create(parentFunctions);
            this.variables = ParentedMap.Create(parentVariables);
        }
 /// <summary>
 /// Creates a new context using the given name table.
 /// </summary>
 /// <param name="nt"></param>
 /// <param name="parent"></param>
 public TriflesXPathContext(NameTable nt, TriflesXPathContext parent = null)
     : base(nt)
 {
     this.table = CreateChildTable(parent);
 }
 /// <summary>
 /// Creates a new context.
 /// </summary>
 /// <param name="parent"></param>
 public TriflesXPathContext(TriflesXPathContext parent = null)
 {
     this.table = CreateChildTable(parent);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a new context using the given name table.
 /// </summary>
 /// <param name="nt"></param>
 /// <param name="parent"></param>
 public TriflesXPathContext(NameTable nt, TriflesXPathContext parent = null) : base(nt)
 {
     this.table = CreateChildTable(parent);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a new context.
 /// </summary>
 /// <param name="parent"></param>
 public TriflesXPathContext(TriflesXPathContext parent = null)
 {
     this.table = CreateChildTable(parent);
 }