Re: [xsl] Is a XSLT 2 to 1 transform possible?

Subject: Re: [xsl] Is a XSLT 2 to 1 transform possible?
From: Jostein Austvik Jacobsen <josteinaj@xxxxxxxxx>
Date: Thu, 29 Oct 2009 09:39:00 +0100
Ok, thanks :)

2009/10/29 Michael Kay <mike@xxxxxxxxxxxx>:
>> Out of curiosity, could a XSLT 1.0 stylesheet be used to
>> convert a XSLT 2.0 stylesheet to an equivalent XSLT 1.0 stylesheet?
>>
>
> XSLT 1.0 is Turing-complete so the theoretical answer is yes. (With a
> proviso that you would need to call out to extensions to handle a few
things
> like unparsed-text() and xsl:result-document).
>
> The practical answer, given the number of man-years that I imagine are
> available to you, is no. Can you imagine what a regular expression engine
> would look like written in XSLT 1.0 code?
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

Current Thread