Hi,
Following is a simple schema that illustrates the problem in JAXB. XJC error message is also attached.
BTW, the schema fragment is actually from j2ee_1_4.xsd from Sun.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="
http://java.sun.com/xml/ns/j2ee"
xmlns:j2ee="
http://java.sun.com/xml/ns/j2ee"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:jxb="
http://java.sun.com/xml/ns/jaxb"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.4">
<xsd:simpleType name="dewey-versionType">
<xsd:restriction base="xsd:decimal">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="TestElement" type="j2ee:dewey-versionType"/>
</xsd:schema>
---- Error
[xjc] Simple type error: facet whiteSpace is not applicable to this dataty
pe