W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Whitespace and patterns

From: <Mike_Leditschke@nemmco.com.au>
Date: Mon, 14 Jan 2002 18:14:24 +1000
To: xmlschema-dev@w3.org
Message-ID: <OF65184EB9.500C0862-ON4A256B43.002BCF5A@nemmco.com.au>
If I have the following type definition

  <xsd:simpleType name="Fred">
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="[\p{L}\p{N}\s]{1,30}"/>
  <xsd:element name="Fred" type=""Fred"/>

Would a single space be legitimate content for
Fred?, i.e.

<Fred> </Fred>

What I am trying to say is that any mixture of letters,
numbers and whitespace from 1to 30 characters
is allowed.

XMLSpy says "the value does not match facet" but
I'm struggling to see why.

Any help appreciated.


This e-mail is confidential.  If you are not the intended recipient, any use, disclosure or copying of this document is unauthorised and prohibited.  If you have received this document in error, please delete the email and notify me by return email or by phoning the NEMMCO Helpdesk on 1300 300 295.
Received on Wednesday, 16 January 2002 03:15:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC