[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Processing two documents, which order?

Subject: Re: Processing two documents, which order?
From: Liam R E Quin <liam@xxxxxx>
Date: Sun, 10 Apr 2011 13:53:29 -0400
Re:  Processing two documents
On Sun, 2011-04-10 at 07:52 +0100, Dave Pawson wrote:
> On Sat, 9 Apr 2011 19:41:00 +0200
> Wolfgang Laun <wolfgang.laun@xxxxxxxxx> wrote:
> > This is about the definition of a character class, using '['and ']',
> > defining a set of characters that match a single character if it is
> > one from the defined set.
> And http://www.w3.org/TR/xmlschema-2/#nt-negCharGroup
> [Definition:]   A character class subtraction is a 7character class
> expression7 subtracted from a 7positive character group7 or 7negative
> character group7, using the - character.
> That's the basis of the question/misunderstanding

Here are some examples (all assuming the default Unicode codepoint
collation so that e.g. e E i k are considered 4 different characters)

[a-z] matches a single character a, b, c, d... z

[abc] matches a single character that's an a, b or c

[aeio-z] matches a single character, a e i o p q r s t u v w x y or z .

[abcdef-[bc]] features a character class subtraction, and matches a
single character that's a d e or f.

Note that the hyphen is overloaded: it introduces a range in [a-z], and
a subtraction in [stuffhere-[not this stuff]]

[a-zA-Z-[aeiouwyAEIOUWY]] matches a single letter that's not a e i o u y
or w in upper or lower case

To match a literal hyphen you escape it as \-

Hope this helps.


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://www.fromoldbooks.org/
Occasional blog: http://www.barefootliam.org/
The barefoot typographer

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.