You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/11/11 20:00:31 UTC
DO NOT REPLY [Bug 4799] New: -
xs:NMTOKEN not considered as derived from xs:string ???
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=4799>.
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=4799
xs:NMTOKEN not considered as derived from xs:string ???
Summary: xs:NMTOKEN not considered as derived from xs:string ???
Product: Xerces-J
Version: CVS extract
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Schema-Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: vdv@dyomedea.com
Derivation by restrictions doesn't accept to derive a xs:NMTOKEN from a
xs:string (or xs:token):
XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="base">
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute name="att" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="tests">
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="base">
<xs:attribute name="att" type="xs:NMTOKEN"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
Error:
[Error] deriv2.xml:2:64: Schema error: Anonymous complexType:
derivation-ok-restriction.2.1.2: Type of attribute 'att' in derivation must be
a restriction of type of attribute in base.
Thanks
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org