I'm sorry if this is a known bug, but the bug repository at

  http://issues.apache.org/jira/browse/XERCESJ

appears to be down.

The problem is that getName() returns null for anonymous types.  I
consider this a bug because the specification at

  
http://www.w3.org/Submission/2004/SUBM-xmlschema-api-20040122/xml-schema-api.html

says

  For anonymous types, the processor must construct and expose an
  anonymous type name that is distinct from the name of every named
  type and the name of every other anonymous type.

It appears that Xerces obeys the "construct" part but falls down on
the "expose" part.  The culprit is

  src/org/apache/xerces/impl/xs/XSComplexTypeDecl.java

which contains this:

  public String getName() {
      return getAnonymous() ? null : fName;
  }

I think that it ought to read

  public String getName() {
      return fName;
  }

Thanks.
--glenn


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to