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:restriction>
  </xsd:simpleType>
  <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.


Regards
Michael




------------------------------------------
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT