Subject: Re: [xsl] Processing two documents, which order? From: Liam R E Quin <liam@xxxxxx> Date: Sun, 10 Apr 2011 13:53:29 -0400 |
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 -- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Processing two documents,, Dave Pawson | Thread | Re: [xsl] Processing two documents,, Brandon Ibach |
[xsl] Washington method, Dave Pawson | Date | [xsl] RE: variable assignment and d, OHalloran, Martin |
Month |