<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>XML Gauge Text, Part III: Mind your %'s and ('s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx</link><description>It looks like a common mistake made by people creating XML gauges is to use too many percent signs (%). For example, I saw this in a 3rd-party gauge recently: %{if} % (On)%{else} % (Off)%{end} The underlined percent signs are unnecessary, and the parser</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Geek Lectures - Things geeks should know about &amp;raquo; Blog Archive   &amp;raquo;  XML Gauge Text, Part III: Mind your %&amp;#8217;s and (&amp;#8217;s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx#2745935</link><pubDate>Mon, 14 Jan 2008 21:05:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2745935</guid><dc:creator>Geek Lectures - Things geeks should know about » Blog Archive   »  XML Gauge Text, Part III: Mind your %’s and (’s</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://geeklectures.info/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s/"&gt;http://geeklectures.info/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: XML Gauge Text, Part III: Mind your %'s and ('s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx#2745951</link><pubDate>Mon, 14 Jan 2008 21:13:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2745951</guid><dc:creator>Tom Aguilo</dc:creator><description>&lt;p&gt;Hi Susan, thank you for the clarification.&lt;/p&gt;
&lt;p&gt;I believe the misunderstanding exists because of the mode a var value is commonly displayed:&lt;/p&gt;
&lt;p&gt;%((MyVar) &amp;gt; 0)%!d! &lt;/p&gt;
&lt;p&gt;It could be &amp;quot;separated&amp;quot; in&lt;/p&gt;
&lt;p&gt;%((MyVar) &amp;gt; 0) and %!d!&lt;/p&gt;
&lt;p&gt;So it's important to highlight also that &lt;/p&gt;
&lt;p&gt;!operator! formatting must be preceeded by a % like&lt;/p&gt;
&lt;p&gt;%!s! or %!02d! or %!3.1f!&lt;/p&gt;
&lt;p&gt;I think this is not properly explained in SDK&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;
</description></item><item><title>re: XML Gauge Text, Part III: Mind your %'s and ('s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx#2751685</link><pubDate>Wed, 16 Jan 2008 20:43:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2751685</guid><dc:creator>Geoff_D</dc:creator><description>&lt;p&gt;I have a Macro &amp;nbsp;to set a color &amp;nbsp;dependant on the RADIO HEIGHT &amp;nbsp;of a Selected Aircraft&lt;/p&gt;
&lt;p&gt;&amp;lt;Macro id=&amp;quot;LowAltitudeBackgroundColor&amp;quot; Name=&amp;quot;LowAltitudeBackgroundColor&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MacroValue&amp;gt;%((C:ITrafficInfo:S:RADIO HEIGHT, feet) 100 &amp;amp;lt;)%{if}0x801010%{else}0x101080%{end}&amp;lt;/MacroValue&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Macro&amp;gt;&lt;/p&gt;
&lt;p&gt;---------&lt;/p&gt;
&lt;p&gt;PROBLEM&lt;/p&gt;
&lt;p&gt;---------&lt;/p&gt;
&lt;p&gt;&amp;lt;GaugeString&amp;gt;(@LowAltitudeBackgroundColor)&amp;lt;/GaugeString&amp;gt;&lt;/p&gt;
&lt;p&gt;displays either of the correct values, &amp;nbsp;according to &amp;nbsp;the &amp;quot;Radio Height&amp;quot;&lt;/p&gt;
&lt;p&gt;but&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;BackgroundColor&amp;gt;@LowAltitudeBackgroundColor&amp;lt;/BackgroundColor&amp;gt;&lt;/p&gt;
&lt;p&gt;placed just before the GaugeString &amp;nbsp;line doe NOT result in the correct colour background.&lt;/p&gt;
&lt;p&gt;It is &amp;nbsp;&amp;quot;Rust Brown&amp;quot;, &amp;nbsp;no matter what &amp;nbsp;the RADIO HEIGHT is &amp;nbsp;setting the Macro result to.&lt;/p&gt;
&lt;p&gt;&amp;quot;Driving me crazy&amp;quot; &amp;nbsp;-- can you tell me what I am doing wrong please &amp;nbsp; :)&lt;/p&gt;
&lt;p&gt;Geoff_D&lt;/p&gt;
</description></item><item><title>re: XML Gauge Text, Part III: Mind your %'s and ('s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx#3120999</link><pubDate>Mon, 08 Sep 2008 17:29:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3120999</guid><dc:creator>Peter Dooley</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I need to set up a &amp;lt;Visible&amp;gt; statement that evaluates (A:GPS APPROACH APPROACH ID, string) against a set of pre-defined strings such as 'VOR 21' 'LOC 31' etc. Please could you help me with the syntax required for the string 'VOR 21'&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;
</description></item><item><title>re: XML Gauge Text, Part III: Mind your %'s and ('s</title><link>http://blogs.technet.com/engauged/archive/2008/01/14/xml-gauge-text-part-iii-mind-your-s-and-s.aspx#3171906</link><pubDate>Sun, 21 Dec 2008 22:20:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3171906</guid><dc:creator>pc forum</dc:creator><description>&lt;p&gt;Great post, explained really well and I could really understand. Thank you.&lt;/p&gt;
</description></item></channel></rss>