title: XSLT:How to deal with testing the value of an element?
body: <p>I have an xml file in which there is tag namely, &lt;Gender/&gt; It carries either 'M' or 'F' as data, now my work is to test the value and write <code>&lt;Gender_Tag&gt;Male&lt;/Gender_Tag&gt;</code> or <code>&lt;Gender_Tag&gt;Female&lt;/Gender_Tag&gt;</code> according to the values M or F respectively .. I tried this code .. It used to work in other circumstances..</p>