🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #481

XSD :comment tester si il a a que des espaces/tab dans un tag ?

#481
From: Nanard
Date: Wed, 27 Sep 2006 15:02
25 lines
1712 bytes
Bonjour,

J'ai un XML avec un tag , disons <Hostname>  qui ne contient que des
epaces ou tabulations :

  <Hostname>   </Hostname>

Je voudrais que ma validation via un fichier XSD échoue.

Comment faire (dans le XSD) ?
Actuellement je n'ai que :
<xs:element name="Hostname">
<xs:simpleType>
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="256"/>
  </xs:restriction>
</xs:simpleType>
</xs:element>


(je ne suis pas un expert des exp. regulières, donc si qqun à LA
bonne expression ...  :-)

Merci
Technical Details
Message-ID: <1159369332.720138.213030@e3g2000cwe.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114f60,ace65655877d0087,start
X-Google-Attributes: gid114f60,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail
From: "Nanard" <bsegonnes@free.fr>
Newsgroups: fr.comp.text.xml
Subject: XSD :comment  tester si il a a que des espaces/tab dans un tag ?
Date: 27 Sep 2006 08:02:12 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1159369332.720138.213030@e3g2000cwe.googlegroups.com>
NNTP-Posting-Host: 62.23.212.170
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1159369338 3264 127.0.0.1 (27 Sep 2006 15:02:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 27 Sep 2006 15:02:18 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: e3g2000cwe.googlegroups.com; posting-host=62.23.212.170;
   posting-account=b37n2QwAAADWVKPFke4cu2UBHsoAAhcZ