title: can i access variables in xml file?if yes then how?
body: <p>I written code for android platform.
  i declare the variable sound_on_state integer variable in .java file
  and in my sound.xml i written following code,</p>
  
  <pre><code>enter code here
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android"                           
         android:oneshot="false"&gt;
  &lt;xsl:if sound_on_state &gt; 0&gt; /*this line give error as android prefix namespace*/
  &lt;item android:drawable="@drawable/sound_on_02" android:duration="50"/&gt;
  &lt;item android:drawable="@drawable/sound_on_01" android:duration="50"/&gt;
  &lt;xsl:else&gt;
  &lt;item android:drawable="@drawable/sound_off_02" android:duration="50"/&gt;
  &lt;item android:drawable="@drawable/sound_off_01" android:duration="50"/&gt;
  &lt;/xsl:else&gt;
  &lt;/xsl:if&gt;
  &lt;/animation-list&gt;
  </code></pre>