Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: cvc-datatype-valid.1.2.1 and cvc-type.3.1.3 - why?

From: Andreas Kemkes <a5sk4s@-----.--->
To: Andreas Kemkes <a5sk4s@-----.--->, xmlschema-dev@--.---
Date: 7/27/2007 6:57:00 AM
I was too much focused on the pattern.  Changing <xs:restriction base="xs=
:NMTOKEN"> to <xs:restriction base="xs:string"> passes the test.=0A=0A---=
-- Original Message ----=0AFrom: Andreas Kemkes <a5sk4s@y...>=0ATo: xm=
lschema-dev@w...=0ASent: Friday, July 27, 2007 1:45:15 PM=0ASubject: cvc-=
datatype-valid.1.2.1 and cvc-type.3.1.3 - why?=0A=0AI can't figure out what=
 the issue is in the following situation:=0A=0AFrom the XML schema file:=0A=
=0A    <xs:element name="modified" type="modified.type" minOccurs="0"=
/>=0A=0A    <xs:simpleType name="modified.type">=0A        <xs:restrictio=
n base="xs:NMTOKEN">=0A            <xs:pattern value="$DateTime(: \d{4}=
/\d{2}/\d{2} \d{2}:\d{2}:\d{2} )?$"/>=0A        </xs:restriction>=0A    </x=
s:simpleType>=0A=0AFrom one of the documents:=0A=0A    <modified>$DateTime:=
 2007/07/19 14:32:36 $</modified>=0A=0AWhy do I see:=0A=0Acvc-datatype-vali=
d.1.2.1: '$DateTime: 2007/07/19 14:32:36 $' is not a valid value for 'NMTOK=
EN'.=0Acvc-type.3.1.3: The value '$DateTime: 2007/07/19 14:32:36 $' of elem=
ent 'modified' is not valid.=0A=0AI'm using the xmlvalidate Task from Apach=
e Ant version 1.7.0 compiled on December 13 2006=0A=0ACan someone point me =
the right way?=0A=0AHow can I diagnose?=0A=0A=0A=0AHow can I correct?=0A=0A=
Thanks in advance.=0A=0A=0A=0A=0A=0A=0A       =0A__________________________=
__________________________________________________________=0AYahoo! oneSear=
ch: Finally, mobile search =0Athat gives answers, not web links. =0Ahttp://=
mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC=0A=0A=0A=0A=0A=0A      =
 =0A_______________________________________________________________________=
_____________Ready for the edge of your seat? =0ACheck out tonight's top pi=
cks on Yahoo! TV. =0Ahttp://tv.yahoo.com/




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