问题
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?
回答1:
I think you need to duplicate them: attribute="{{{{angularjs.expression}}}}"
.
来源:https://stackoverflow.com/questions/23030507/angularjs-expressions-in-xslt