Menu

#19 Attribute schema usage constraints ignored

open
nobody
None
5
2003-12-22
2003-12-22
Olivier
No

Pollo 0.4 on Win2K/JDK1.4.2

Attribute usage (required, optional, prohibited)
defined in XML Schema are ignored when editing XML
documents.
For instance if a Schema defines an element with three
attributes, each with different usage contraints:

Pollo processes (display and edition) them identically.

<xs:element name="MyElement">
<xs:complexType>
<xs:attribute name="name" type="xs:string"
use="required"/>
<xs:attribute name="ext-name" type="xs:string"
use="optional"/>
<xs:attribute name="hidden" type="xs:string"
use="prohibited"/>
</xs:complexType>
</xs:element>

Discussion


Log in to post a comment.