And they just didn't make it something like javascript... I'm never expected that XSLT has function like this, and it just helped me in one of my XML/XSL parsing task.
substring("ABCDEFG",3,3) will display CDE since XSLT doesn't refer the first element on 0 index.
Actually, I really disliked the way XSLT do in loops. you can't overwrite variables, and for-looping and performing something on a node-specific basis is really painful, you have to do it the HARD way, which makes your coding experience a bit dirty, especially if you are already attached to the OOP way of doing things...
XSLT was never meant to be a programming language anyway.. .
Subscribe to:
Posts (Atom)