c# - XslCompiledTransform cannot load stylesheet, expects token '}' -
i have xml contains following line:
<field text="%%=$summ,{0:0.000}%%%" />
xslcompiledtransform.load expecting '}' instead of ':'.
expected token '}', found ':' in %%=$summ,{0 -->:<-- 0.000}%%%
is there way avoid this?
the curly braces used attribute value templates in xslt.
the xslt processor evaluates content xpath expression, , 0:0.000
not valid xpath.
if mean literal curly braces, must escaped (in attribute values only, of course):
<field text="%%=$summ,{{0:0.000}}%%%" />
Comments
Post a Comment