コード例 #1
0
        /// <summary>
        /// Validate a schema element test.
        /// </summary>
        /// <param name="e">
        ///            is the expression. </param>
        /// <returns> null. </returns>
        public virtual object visit(SchemaElemTest e)
        {
            QName elem = e.name();

            if (!expandItemQName(elem))
            {
                reportBadPrefix(elem.prefix());
            }

            if (_sc.TypeModel.lookupElementDeclaration(elem.@namespace(), elem.local()) == null)
            {
                reportError(new StaticElemNameError("Element not declared: " + elem.@string()));
            }
            return(null);
        }
コード例 #2
0
 /// <param name="e">
 ///            is the schema element test. </param>
 /// <returns> e </returns>
 public virtual object visit(SchemaElemTest e)
 {
     return(e);
 }