Re: [xslt] regexp extension?
- From: Thomas Broyer <tbroyer ltgt net>
- To: xslt gnome org
- Subject: Re: [xslt] regexp extension?
- Date: Mon, 03 Dec 2001 12:36:04 +0100 (MET)
En réponse à Daniel Veillard <veillard@redhat.com>:
> Very clearly, I would prefer not to depend on another library being
> installed. POSIX regexps are there, anything else requires installing
> another library, I won't add this at least not in the default setup.
EXSLT is changing to use XML Schema regexp syntax, which is not totally POSIX.
Jeni Tennisson explains the differences from the JavaScript regexps, and most
of them also apply to POSIX (JavaScript regexps are a superset of POSIX ones),
in <http://lists.fourthought.com/pipermail/exslt/2001-December/000368.html>
RX-XML, from Hackerlab, <http://regexps.com/rx-xml.html> is under GPL and
implements Unicode-aware XML Schema regexps. Exactly what we need, isn't it?
I think we should detect if the RX-XML lib and compile the regexp libexslt
module depending on its installation state:
If not installed Then
do not try to compile with it
Else
If disableByTheUser Then
do not compile with it
Else
compile the regexp module
End If
End If
Eventually, we may propose POSIX regexps if RX-XML is not available but this
won't be EXSLT-compliant so we loose the benefits of EXSLT: be portable among
EXSLT-compliant processors.
Tom.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]