Exemple #1
0
        /// <summary>
        /// Validate a schema attribute test.
        /// </summary>
        /// <param name="e">
        ///            is the expression. </param>
        /// <returns> null. </returns>
        public virtual object visit(SchemaAttrTest e)
        {
            QName name = e.arg();

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

            if (_sc.TypeModel.lookupAttributeDeclaration(name.@namespace(), name.local()) == null)
            {
                reportError(new StaticAttrNameError("Attribute not decleared: " + name.@string()));
            }

            return(null);
        }
Exemple #2
0
 /// <param name="e">
 ///            is the schema attribute test. </param>
 /// <returns> e </returns>
 public virtual object visit(SchemaAttrTest e)
 {
     return(e);
 }