Condition works for XSLT 1.0 stylesheet, but not for XSLT 2.0 stylesheet -


Consider the situation that is present in a template that is called recursive:

 < Code> & lt; Xsl: if test = "$ i & lift; = $ counts" & gt;  

I am using an XSLT 2.0 processor (Suxan-B 9.1.0.6). The condition works only when XSLT 1.0 stylesheet runs.

Any ideas why?

This is the whole thing:

   & Lt; Xsl: Ultimate Name = "Calculation" /> & Lt; Xsl: if test = "$ i & lt; = $ count" & gt; ... & lt; / Xsl: if & gt; & Lt ;! - Repeat the loop by recurring - & gt; & Lt; Xsl: if test = "$ i & lt; = $ count" & gt; & Lt; Xsl: call-template name = "for.loop" & gt; & Lt; Xsl: with-param name = "i" & gt; & Lt; Xsl: Select the value = "$ i + 1" /> & Lt; / XSL: with-param & gt; & Lt; Xsl: with param-name = "count" & gt; & Lt; Xsl: Select Value = "$ counts" /> & Lt; / XSL: with-param & gt; & Lt; / XSL: Call-templates & gt; & Lt; / XSL: If & gt; & Lt; / XSL: Templates & gt;  

Thanks.

Here's my doubt: depending on the data type $ i And $ coun t, "at least" may fail in the trial 2.0 (which supports more than 1.0 data types), where 1.0 has an underlying conversion that is the right thing to do Does.

Try changing it before you change the data correctly, such as number () . Using


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -