Counting in xslt 2003-04-16 - By Joseph Kesselman
>I'm not sure what you mean by folding the values?
Converting them to a single case before comparing them. The translate() function can be used for this purpose; rather than comparing $a=$b, compare translate($a,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ") = translate($b,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
It's wordy but it should work. ______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")
<br><font size=2 face="sans-serif">></font><font size=2 color=blue face= "Arial">I'm not sure what you mean by folding the values?</font> <br> <br><font size=2 face="sans-serif">Converting them to a single case before comparing them. The translate() function can be used for this purpose; rather than comparing $a=$b, compare</font> <br><font size=2 face="sans-serif"> translate($a, "abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")< /font> <br><font size=2 face="sans-serif"> =</font> <br><font size=2 face="sans-serif"> translate($b, "abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")< /font> <br> <br><font size=2 face="sans-serif">It's wordy but it should work.<br> ______________________________________<br> Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. <br> "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")<br> </font>
|
|