Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: RegEx [+\-] or [+-]?

From: "Pete Cordell" <petexmldev@--------------.--->
To: "Rao,Dr.,R.,SNL IT Filialen,4110,DA" <R.Rao@------------.-->, <xmlschema-dev@--.--->
Date: 6/5/2007 5:49:00 PM
According to the narrative text following: 
http://www.w3.org/TR/xmlschema11-2/#nt-charRange case 1 should be valid a=
s 
per the schema spec.

However, it could be argued that this is in the small print, and hence ma=
y 
have interoperability problems.  Case 2 is still valid, and less demandin=
g 
of an implementation.  Hence you might want to choose to take the safer 
route.

Also, there's a big chance that the Java code just uses Java's standard 
regular expression library.  If this is the case then it might be difficu=
lt 
to change to get the desired behaviour.

HTH,

Pete.
--
==========================
====================
Pete Cordell
Tech-Know-Ware Ltd
for XML Schema to C++ data binding visit
 http://www.codalogic.com/lmx/
==========================
====================

----- Original Message ----- 
From: "Rao,Dr.,R.,SNL IT Filialen,4110,DA" <R.Rao@D...>
To: <xmlschema-dev@w...>
Sent: Tuesday, June 05, 2007 11:50 AM
Subject: RegEx [+\-] or [+-]?


The regEx below make restrictions on the UTC-Offset in the datetime data 
type.

We found out that the expression 1 makes no problem with the Microsoft 
parser (.net 2.0).

A third party which receives data from us, uses Java and have problems wi=
th 
1. They would like the expression 2.



1: <xs:pattern 
value="\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d([+-](0[0-9]|1[0-2]):00|[+-](03|09=
):30|[+](13|14):00|[+](04|05|06|10|11):30|[-]08:30)"/>

2: <xs:pattern 
value="\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d([+\-](0[0-9]|1[0-2]):00|[+\-](03|=
09):30|[+](13|14):00|[+](04|05|06|10|11):30|[\-]08:30)"/>





Which is the recommended expression?



Thanks,  Roberto



Dr. Roberto Rao
Deutsche Post AG

SNL IT FILIALEN
4110-5 / Architektur
Poststra=DFe 4-6, Raum B 03a
64293 Darmstadt



Tel: (0 61 51) 9 07 31 18

Fax: (0 61 51) 3 90 94 10 01
Mobil: (0170) 9 27 06 87
E-Mail: mailto:R.Rao@D... <mailto:R.Rao@D...>



________________________________

Dies ist eine Nachricht der Deutsche Post AG und kann vertrauliche, 
firmeninterne Informationen enthalten. Sie ist ausschlie=DFlich f=FCr die=
 oben 
adressierten Empf=E4nger bestimmt. Sind Sie nicht der beabsichtigte Empf=E4=
nger, 
bitten wir Sie, den Sender zu informieren und die Nachricht sowie deren 
Anh=E4nge zu l=F6schen. Unzul=E4ssige Ver=F6ffentlichungen, Verwendungen,=
 
Verbreitung, Weiterleitung sowie das Drucken oder Kopieren dieser Mail un=
d 
ihrer verkn=FCpften Anh=E4nge sind strikt untersagt.



Bitte denken Sie =FCber Ihre Verantwortung gegen=FCber der Umwelt nach, b=
evor 
Sie diese Email ausdrucken!



Deutsche Post AG

Aktiengesellschaft

Vorstand: Dr. Klaus Zumwinkel (Vorstandsvorsitzender), John M. Allan, Dr.=
 
Frank Appel, Prof. Dr. Edgar Ernst, John P. Mullen, Dr. Hans-Dieter Petra=
m, 
Walter Scheurle, Prof. Dr. Wulf von Schimmelmann

Vorsitzender des Aufsichtsrates: Dr. J=FCrgen Weber

Sitz Bonn

Handelsregister-Nummer: Registergericht Bonn HRB 6792

USt-IdNr: DE 169838187




From mike@s... Tue Jun 05 16:26:03 2007
Received: from maggie.w3.org ([193.51.208.68])
	by frink.w3.org with esmtp (Exim 4.50)
	id 1Hvbr9-0006OB-EQ
	for xmlschema-d


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent