users@jaxb.java.net

Does not throw an validation exception

From: Sriram Thyagarajan <Sriram_Thyagarajan_at_KEANE-NNE.com>
Date: Wed, 30 Apr 2003 16:07:34 -0400

Here is definition...

  <xsd:simpleType name="StringTime_HHmmss">
    <xsd:restriction base="xsd:string">
      <xsd:length value="6" fixed="true"/>
      <xsd:pattern value="[0-2][0-3][0-5][0-9][0-5][0-9]"/>
    </xsd:restriction>
  </xsd:simpleType>

...
      <xsd:element name="AccidentTime" type="StringTime_HHmmss"
        minOccurs="1" maxOccurs="1"/>
...



All I am trying to do here is trying to validate the input field is a valid
hour/min/sec combination...

For the following input date, no validation exception is thrown during
unmarshalling

    <AccidentTime>595959</AccidentTime>

What am I doing wrong here... Any help appreciated.

Thanks