return NameClass.ALL;
if( namespace.equals("##other") )
// ##other means anything other than the target namespace and local.
return new NotNameClass(
new ChoiceNameClass(
new NamespaceNameClass(currentSchema.targetNamespace),
new NamespaceNameClass("")) );
NameClass choices=null;
StringTokenizer tokens = new StringTokenizer(namespace);
while( tokens.hasMoreTokens() ) {
String token = tokens.nextToken();
NameClass nc;
if( token.equals("##targetNamespace") )
nc = new NamespaceNameClass(currentSchema.targetNamespace);
else
if( token.equals("##local") )
nc = new NamespaceNameClass("");
else
nc = new NamespaceNameClass(token);
if( choices==null ) choices = nc;
else choices = new ChoiceNameClass(choices,nc);
}
if( choices==null ) {
// no item was found.
reader.reportError( XMLSchemaReader.ERR_BAD_ATTRIBUTE_VALUE, "namespace", namespace );