RE: XSLT comments

> Dear Sir,
> 
> As I wanted to use XSLT for the transformation of a XML 
> document, containing in semantic sense a networkstructure, 
> into a XML document with the same information but in some 
> treestructure, I established that there is no instruction to 
> implement an iteration based on a condition (e.g. test the 
> value of a variable). Wouldn't it be useful to provide such 
> an instruction in future versions of XSLT?
> 

Thanks for the comment.

XSLT is a functional language designed to be side-effect-free. It therefore
relies heavily on recursion rather than iteration to implement such
algorithms. You will find that many complex graph-based algorithms have been
implemented in XSLT: look for example for Dimitre Novatchev's FXSL library.

If you have problems coding particular algorithms in XSLT, you can usually
get help from the xsl-list at www.mulberrytech.com.

XSLT 2.0 contains many features which make complex algorithms easier to
write than in XSLT 1.0 (for example, through the introduction of sequences
in the data model), but we don't intend to change the fact that it remains a
pure functional language.

Regards,

Michael Kay

Received on Thursday, 14 August 2003 12:16:29 UTC