xsl-list
[Top] [All Lists]

Re: [xsl] analyze-string help?

2012-06-10 15:43:53
> In my ideal world the syntax would evolve so you could constrain the categories -- "\p{Pd except '-'}", "any character that is some kind of dash except for U+002D "hyphen-minus", for example -- since that would make this even more useful for functions that take regular expressions such as tokenize().

XPath regular expressions allow a subtraction operator within a character class:

[\p{Lu}-[IO]]

allows any upper case letter except I or O.

Michael Kay
Saxonica

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