[Bug 5466] Point out the cases where attribute prohibitions are pointless

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

           Summary: Point out the cases where attribute prohibitions are
                    pointless
           Product: XML Schema
           Version: 1.0 only
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: cmsmcq@w3.org
        ReportedBy: cmsmcq@w3.org
         QAContact: www-xml-schema-comments@w3.org
 BugsThisDependsOn: 2311


+++ This bug was initially created as a clone of Bug #2311,
to track the problem for XSD 1.0 +++

AFAIK attribute prohibitions (use="prohibited") are only significant
when restricting a type; i.e. when they appear as children of <restriction>
and <complexType>.

Any other occurrences of such prohibitions should be pointless,
but there's no consensus between various schema processors.

An explicit statement about where prohibitions are pointless could
be of help here. Generating a warning when we hit such pointless
prohibitions would deminish confusion on the schema authors side.

Received on Friday, 8 February 2008 20:08:09 UTC