在 xml 上应用模板之前,是否可以在 xsl 参数上应用模板
我有一个 xsl 参数,其中一个字符串。我想解析该字符串,拆分它,对于每个子字符串值,我想应用 xsl 中的模板。
这可能吗?如果是这样,您能建议一个乐观的解决方案吗?
谢谢
I have a xsl parameter which a string. I want to parse that string, split it and for each substring value I want to apply the template in the xsl.
Is this possible? If so, Can you please advise an optimistic solution?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑:误解了这个问题,抱歉。
答案是是。
输入:
样式表:
结果:
Edit: Missundertood the question, sorry.
The answer is yes.
Input:
Stylesheet:
Result:
不确定您的意思,但复制此模式可能会有所帮助: XSLT - 将逗号分隔的文本拆分和呈现为 HTML 的最佳方式
Unsure what you mean but copying this pattern may help: XSLT - Best way to split and render comma separated text as HTML