Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS expressions in XSLT

Tags:

xslt

xslt-1.0

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?

like image 400
Ozrix Avatar asked Feb 06 '26 14:02

Ozrix


1 Answers

I think you need to duplicate them: attribute="{{{{angularjs.expression}}}}".

like image 133
Martin Honnen Avatar answered Feb 09 '26 11:02

Martin Honnen