users@jaxb.java.net

Re: No class generated for element with type="int" (xjc)

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Tue, 11 Mar 2008 09:31:43 +0100

ops, namespace reference is missed (xsd:):


> <xsd:element name="myElement">
> <xsd:simpleType>
> <xsd:restriction base="xsd:int">
> <xsd:minInclusive value="1"/> <!-- of course, optional :) -->
> <xsd:maxInclusive value="3"/>
> </xsd:restriction>
> </xsd:simpleType>
> </xsd:element>

ok, if you use xlmns=".... scheama", it is not necessary anyway, but
it is always a good practice to specify namespaces for every tag in
your schema.... IMHO