[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: turing complete?

Subject: RE: turing complete?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 31 May 2001 16:07:40 +0100
sql turing complete
> Someone recently caught me off gaurd asking if XSLT is turing
> complete.
>
> But I am still wondering why this is even important. How would you
> answer the question "Is XSLT turing complete"?

Yes, XSLT is Turing complete. I seem to recall someone providing a trivial
proof of that on this list.

The question is important because of its consequences. For example, it means
it is possible to write stylesheets that loop indefinitely, and that it is
sometimes impossible to detect such stylesheets by static analysis.

It also means that anyone who tells you that they are using Javascript
because "XSLT cannot do xxx" is wrong (though they might be correct if they
argued instead that "XSLT can't do xxx easily/efficiently).

Incidentally, SQL in its original form is not Turing-complete, and although
you can easily write an SQL SELECT statement that takes months to execute,
you can't write one that loops indefinitely.

Mike Kay
Software AG


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.