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

Reply via email to