First of all I just sent an email just like my first question and completly forgot about this one :/, Sorry about the extra mail and reading.
I have tried to define the element like you have suggested below, and my code, I am unable to recogize a SimpleType with no name, followed by a restriction, although this may be the only way to go. Are you allowed to have facets such as minInclusive without having a restriction base? On Mon, 21 Jul 2003, sire chembiparambil wrote: > > > > > Lloyd > > Just out of curiosity, have you tried to defining the element as below. > > <xsd:element name="north_edge"> > <xsd:simpleType> > <xsd:restriction base="xsd:decimal"> > <xsd:minInclusive value="-90.0"/> > <xsd:maxInclusive value="90.0"/> > </xsd:restriction> > </xsd:simpleType> > </xsd:element> > > instead of the original > <xsd:element name="north_edge" type="xsd:decimal" xsd:minInclusive="-90.0" > xsd:maxInclusive="90.0"/> > > This is how I normally define facets...... > > Sire > > > > > Lloyd Rochester > <[EMAIL PROTECTED] To: [EMAIL PROTECTED] > r.edu> cc: > Subject: [castor-dev] Cannot parse > facets > 07/18/2003 05:19 > PM > Please respond to > castor-dev > > > > > > > I have the following element (SimpleType) > > <xs:element name="north_edge" type="xs:decimal" > xs:minInclusive="-90.0" xs:maxInclusive="90.0"/> > > When I do (simple is the SimpleType of the element): > > > for (Enumeration facets = simple.getLocalFacets(); > facets.hasMoreElements();) { > Facet f = (Facet) facets.nextElement(); > System.out.println(f.getName() + ": " + f.getValue()); > } > > I cannot get any facets? What am I doing incorrectly? > > Thanks in advance. > > Lloyd > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev