Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Regexp from EXSLT working in libxslt?

Has anyone got Regexp working in libxslt? When yes, how?

http://www.exslt.org/regexp/index.html

When using the command xsltproc --dumpextensions with the latest libxslt I'm not getting any Regexp support :-(

like image 460
therealmarv Avatar asked Aug 05 '11 07:08

therealmarv


1 Answers

xsltproc includes {http://exslt.org/strings}replace already these days. Bind some prefix to that namespace, e.g. string, and then call string:replace().

You can get the list of extensions compiled into the xsltproc program using the shell command:

xsltproc --dumpextensions

If your libxsltproc is from the same build it should have the same extensions, I think.

like image 97
barefootliam Avatar answered Oct 07 '22 05:10

barefootliam