[Bug 3054] Availability of type definition

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3054

           Summary: Availability of type definition
           Product: XML Schema
           Version: 1.0/1.1 both
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: ht@w3.org
        ReportedBy: cmsmcq@w3.org
         QAContact: www-xml-schema-comments@w3.org


Sections 3.2.5 and 3.3.5 specify that a type definition is known
for an element or attribute (only) if it is valid.

The consequence is that when an element or attribute is locally
invalid, because it does not conform to the relevant type
definition, the PSVI (as defined in 1.0 and the 1.1 status quo)
tells the downstream application that the element or attribute
is invalid, but does not vouchsafe any information about
which type definition it was found to be invalid against.

In simple cases, this can be found by examining the element or
attribute declaration and looking for the declared type 
definition.  In other cases, it requires redoing the work
already done by the schema validator, figuring out which type
definition the element or attribute should be validated against.
If there is any confusion about which type that is, or about
whether the validator actually used the correct type definition,
the current definition of the PSVI does not provide any useful
information.

The type definition should be described as being part of the
PSVI for every element or attribute which is locally assessed,
whether valid or invalid.

Received on Tuesday, 28 March 2006 02:06:37 UTC