W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

Platform-indendent way of specifying line separator?

From: Roger L. Costello <costello@mitre.org>
Date: Thu, 04 Sep 2003 16:22:10 -0400
Message-ID: <3F579EF2.173F340B@mitre.org>
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>, "Costello,Roger L." <costello@mitre.org>

Hi Folks,

What regex (or Unicode symbol) is used to specify "line separator"?  The
regex (or Unicode symbol) must work regardless of the platform.

<pattern value="[a-zA-Z0-9]*_____"/>
                                             line separator regex (or
Unicode-symbol) goes here

"Zero or more alphanumeric characters followed by a new line."

Note: I do not believe that \p{Zl} is the answer.  It doesn't work with
any of the schema validators that I have tried (XML Spy, xerces).  Also,
I believe that \p{Zl} represents a single, Unicode character.  Thus it
doesn't allow multi-character line separators such as \n\r.  (But I may
be wrong)

Received on Thursday, 4 September 2003 16:22:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC