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

RE: when to use xslt

Subject: RE: when to use xslt
From: "Mark Lundquist" <ml@xxxxxxxxxxxxxx>
Date: Thu, 13 Jan 2005 13:33:16 -0800
mark lundquist
> From: Henning Waack [mailto:henning.waack@xxxxxx]
>
> I'am looking for argument for and against xslt, that is when
> is it useful to use (the functional language) xslt, when to
> use some imperative programming language?\

It's not really a functional-vs.-imperative question.

IMHO the test of suitability would be something like this:

If you have input data in the form of an XML tree...

...and you want to do a transformation that will yield a result in the form
of an XML tree...

...then you should first consider a language that is designed for
transforming XML trees, such as XSLT, STX or XQuery.  That's why those
languages exist -- so that you don't have to reinvent the wheel.

Obviously this suitability test can be stretched into something absurd,
e.g.:

	input:

		<number-of-primes>6<number-of-primes>

	output:

		<primes>1,2,3,5,7,11</primes>

Using XLST to do that computation would not be a great idea :-)...

HTH,
-ml-

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.