How to get Regexp from EXSLT running in libxslt?

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

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

When using the xsltproc --dumpextensions with the latest version of libxslt, I don't get Regexp support: - (

+6
source share
1 answer

xsltproc includes {http://exslt.org/strings}replace these days. Bind some prefix to this namespace, for example. string, and then call the string: replace ().

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

 xsltproc --dumpextensions 

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

+1
source

Source: https://habr.com/ru/post/894360/


All Articles