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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -