Howto talk:Development of the CDU: Difference between revisions
Jump to navigation
Jump to search
m (Created page with '= Nasal in XML files (command bindings) = Note that Nasal scripts embedded in XML should be wrapped in <![CDATA[ ... ]] markup: <![CDATA[ print("Foo"); ]] --~~~~') |
|||
Line 4: | Line 4: | ||
--[[User:Hooray|Hooray]] 21:42, 2 December 2010 (UTC) | --[[User:Hooray|Hooray]] 21:42, 2 December 2010 (UTC) | ||
Thanks for that advice. But shouldn't there be a <tt>></tt> 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> | |||
--[[User:Hcc23|Hcc23]] 22:16, 2 December 2010 (UTC) |
Revision as of 22:16, 2 December 2010
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)