Replacing XML value in XSLT

前端 未结 3 1402
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 17:26

I can\'t edit XML, I just want to change XML data in an XSLT file.


Th

3条回答
  •  天涯浪人
    2021-01-16 18:16

    XSLT 2.0 has a replace() function.

    If you're stuck with 1.0, there is a template in the standard library that can stand in for the lack of a native function:

    http://prdownloads.sourceforge.net/xsltsl/xsltsl-1.2.1.zip http://xsltsl.sourceforge.net/string.html#template.str:subst

提交回复
热议问题