Re: Increment/decrement a variable in XSL
Julian Reschke wrote:
I would use an external variable and a set of functions (increase, decrease, getValue) defined using the script element from the http://www.exslt.org/functions namespace.
I don't think so. It may just be better not to use XSLT for everything :)
I think that EXSLT.org's primary goal is to make extensions (more) portable. The suggested solution should work with every processor supporting EXSLT's funct:script. I agree that this may be mere theory and I'm not sure how many processors support this extension element now.
Anyway, facing a non-XSLT problem such as this one, one should consider all solutions including XSLT extensions or even some other ways than XSLT. I'm not aware of a context of this problem, it's likely that an XSLT workaround is still the best solution.
-- Petr Cimprich Ginger Alliance www.gingerall.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format