Hi David, Michael
> From: David Tolpin [mailto:dvd@xxxxxxxxxxxxxx]
> ...
> Michael,
> ... Yet it turns out that
> XSLT 2.0 is not upto the task of converting from XSLT 1.0 to XSLT 2.0.
The problem is that XSLT is not a true XML language: the XPath literals
are not broken up into a tree structure. So in order to transform XSLT 1.0
it will be almost essential to delegate the XPath parse to some Java code.
If there was a standard XML tree representation of an XPath, which could
come in useful for all sorts of other purposes, the fn:xpath-to-tree()
function would return it enabling proper XSLT analyses. The reverse
fn:tree-to-xpath() is just a pretty printer.
Given fn:xpath-to-tree(), it would be possible to convert XSLT 1.0 to 2.0,
and perhaps this conversion should accompany the standard.
Regards
Ed Willink
------------------------------------------------------------------------
E.D.Willink, Email: mailto:EdWillink@xxxxxxx
Thales Research and Technology (UK) Ltd, Tel: +44 118 923 8278 (direct)
Worton Drive, or +44 118 986 8601 (ext 8278)
Worton Grange Business Park, Fax: +44 118 923 8399
Reading, RG2 0SB
ENGLAND http://www.computing.surrey.ac.uk/personal/pg/E.Willink
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|