How to get Regexp from EXSLT working in libxslt?

送分小仙女□ 提交于 2019-12-10 13:26:11

问题


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 :-(


回答1:


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.



来源:https://stackoverflow.com/questions/6952625/how-to-get-regexp-from-exslt-working-in-libxslt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!