You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/07/18 19:25:45 UTC

DO NOT REPLY [Bug 10958] New: - Anonymous types are not properly handled when used inside a restriction

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10958>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10958

Anonymous types are not properly handled when used inside a restriction

           Summary: Anonymous types are not properly handled when used
                    inside a restriction
           Product: Xerces-C++
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Validating Parser (Schema) (Xerces 1.5 or up only)
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: alby@exceloncorp.com


Running SaxCount on the attached XML shows the error "Type of 
attribute 'phoneticTranscription' must be validly derived from type of 
attribute in base". The problem stems from the fact that the type of the base 
attribute is defined using an anoymous type (in this case, a list of strings: 
if you replace the definitions with the commented version, that makes use of a 
global type, it works). The restriction modifies the usage of the attribute, 
and then defines it to be of the same type of the parent, but using an 
anonymous type (after all, it could not do it in other ways).
But the function DatatypeValidator::isSubstitutableBy only checks if a pointer 
to the same base type can be found in the inheritance chain, while it should 
also check if the two definitions are describing the same data type.

Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org