Howto talk:Development of the CDU
Jump to navigation
Jump to search
Nasal in XML files (command bindings)
Note that Nasal scripts embedded in XML should be wrapped in <![CDATA[ ... ]] markup:
<![CDATA[ print("Foo"); ]]
--Hooray 21:42, 2 December 2010 (UTC)
Thanks for that advice. But shouldn't there be a > somewhere? Could you please correct this example (in a new version below)?
<animation> <type>pick</type> <object-name>Btn.zero</object-name> <action> <button>0</button> <repeatable>false</repeatable> <binding> <command>nasal</command> <script>setprop("/instrumentation/cdu/input",getprop("/instrumentation/cdu/input")~'0');</script> </binding> </action> </animation>
--Hcc23 22:16, 2 December 2010 (UTC)