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

Re: Filtering, xslt 2.0

Subject: Re: Filtering, xslt 2.0
From: "C. M. Sperberg-McQueen cmsmcq@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Nov 2022 17:50:43 -0000
Re:  Filtering
"Liam R. E. Quin liam@xxxxxxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> writes:

> [a brief somewhat pedantic side-track]

[And .. a brief thoroughly pedantic side-track from the side-track:]

> On Wed, 2022-11-02 at 14:19 +0000, Graydon graydon@xxxxxxxxx wrote:

>> ... This is true, though I would note that in general, the Unicode
>> character category,
>>
>> tokenize($param,',\p{Zs}*')
>>
>> can be safer. \s usually matches a space, a tab, a carriage return, a
>> line feed, or a form feed, but what the exact match is depends on the
>> regular expression implementation.B 
>
>
> For XSLT 2 and later it's defined as equivalent to the character class
> [&#x20\t\n\r] by XML Schema so there should not be any variation.
>
> Unicode properties., however, are defined by the Unicode Consortium and
> can vary over time - usually by additions.
>
> (actually XSD omits the "&" but i think we can safely say that's a typo
> and i seem to remember there may be an erratum about it.

For what it's worth, not a typo.  The XSD spec uses hash mark + 'x' +
hexadecimal number to refer to Unicode code points.  This is explained
in a note in section 4.3.6:

        Note: The notation #xA used here (and elsewhere in this
        specification) represents the Universal Character Set (UCS) code
        point hexadecimal A (line feed), which is denoted by U+000A.
        This notation is to be distinguished from &#xA;, which is the
        XML character reference to that same UCS code point.


--
C. M. Sperberg-McQueen
Black Mesa Technologies LLC
http://blackmesatech.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.