XSLT 中的 AngularJS 表达式 [英] AngularJS expressions in XSLT
本文介绍了XSLT 中的 AngularJS 表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 AngularJS 的表达式作为 .xsl 模板中的属性值,如下所示:
<div attribute="{{angularjs.expression}}" data-stuff="{./someId}">
但 XSLT 注意到大括号并尝试处理表达式.如何转义双大括号?
解决方案
我认为你需要复制它们:attribute="{{{{angularjs.expression}}}}"
.>
I'm using AngularJS' expressions as attribute values in .xsl templates, like this:
<div attribute="{{angularjs.expression}}" data-stuff="{./someId}">
But XSLT takes notice of the curly brackets and tries to process the expression. How can I escape the double curly brackets?
解决方案
I think you need to duplicate them: attribute="{{{{angularjs.expression}}}}"
.
这篇关于XSLT 中的 AngularJS 表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文