【发布时间】:2017-04-24 14:24:38
【问题描述】:
对于图像标签,我只需要在 JSON 输出中使用 XSLT 保留带有“file/”内容的图像文件:
我的输入 XML 文件是:
<image>binary/alias/my.jpg</image>
XSL 用作:
<xsl:template match="image">
image: <xsl:apply-templates/>,
</xsl:template>
我得到的 JSON 输出是:
image: binary/alias/my.jpg
我需要输出为:
image: files/my.jpg
请帮助我。提前致谢。
【问题讨论】:
-
您将使用哪种 XSLT 处理器?
-
version="2.0" @Michael