[Home] [By Thread] [By Date] [Recent Entries]

  • From: =?UNKNOWN?Q?Jos=E9?= Manuel Beas <jmbeas@t...>
  • To: XML-DEV <xml-dev@l...>
  • Date: Mon, 22 Jan 2001 10:46:51 +0100

Hello everyone,

I need to define an xsd:simpleType to match strings formatted as hh:mm:ss:ff
(hours,minutes,seconds and frames -between 00 and 24-).

I've defined:
-------
<xsd:simpleType name="myTime">
  <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{2}:\d{2}:\d{2}:\d{2}"/>
  </xsd:restriction>
</xsd:simpleType>
-------

But with this definition strings like "01:12:75:23" would match, and that
cannot be accepted.

How should I define this type?

Thanks,
--
José Manuel Beas (jmbeas@t...)
Software Engineer
TELENIUM, The New Millennium Telecom Company
Agustín de Foxá, 25, plta. 13
28036 MADRID
Tel. +34 91 315 85 62 (ext. 260)
Fax +34 91 315 63 37
http://www.telenium.es



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member