xsl-list
[Top] [All Lists]

Re: [xsl] Processing two documents, which order?

2011-04-10 12:54:54
On Sun, 2011-04-10 at 07:52 +0100, Dave Pawson wrote:
On Sat, 9 Apr 2011 19:41:00 +0200
Wolfgang Laun <wolfgang(_dot_)laun(_at_)gmail(_dot_)com> 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 ·character class
expression· subtracted from a ·positive character group· or ·negative
character group·, 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 é ë 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



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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--