Hi All,
I am using xsl to convert data from xml into C++ code. I am running into problems when I have <= or >= in the xml file that needs to be converted to C++ code.
For example if I have (in .xml file)
<Check>max(x,y) <= 20 </Check>
and the .xsl file is
if(<xsl:value-of select="Check"/>") {
...
}
But this does not compile as XML errors out on seeing <=.
I tried <= in xml file but I don't get <= in C++ file but I get <=. To be user friendly I need to have <= in xml file rather than <=.
How can I fix the code within if() condition so that I can handle all the escape characters in xml and properly output them to a C++ file?
Thanks Anand