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

  • From: Michael Kay <mike@s...>
  • To: xml-dev@l...
  • Date: Wed, 11 May 2011 00:04:02 +0100

On 10/05/2011 19:34, Toby Considine wrote:
01d201cc0f40$e2f3e4e0$a8dbaea0$@gmail.com" type="cite">

I need to exchange datetimes without timezone information. Actually, I need to forbid it within the DateTime format.

 

The reason is, I am exchanging information with RFC5545-compliant systems which have a fundamentally different understanding of TimeZones than does the XSD specification. At the end, I need to send <datetime><timezone> as two parameters. My choices appear to have a string type with my own pattern, or use xs:datetime, and constraint it so expression of timezone (including Z for UTC) is prohibited….

 

Any comments or suggestions?

 



XSD 1.1 has a facet to say whether timezones are optional, mandatory, or disallowed, but in XSD 1.0 you can do it using a regex.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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