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

Re: Procedural vs Declarative XML transformation approaches

  • From: Matt Sergeant <matt@s...>
  • To: Mike.Champion@S...
  • Date: Sat, 04 Nov 2000 18:05:26 +0000 (GMT)

perl declarative
On Sat, 4 Nov 2000 Mike.Champion@S... wrote:

> I don't want to open too big a can of worms, but I'd appreciate any pointers
> to background information that might help me understand the pros and cons,
> appropriate use cases, etc. for the alternative approaches to transforming
> XML (either to a display format or another XML format).  There exist
> non-procedural languages such as XSLT to do this by "declaring" what is to
> be done, and there exist  procedural approaches -- such as  DOM+Javascript,
> OmniMark, XMLPerl, PHP (?), and perhaps XSLScript -- that  let you write a
> script to just *do* what needs to be done.
> 
> I'm not interested in a rehash of what's right and wrong with XSLT itself,
> but a more abstract discussion of when and why one would take one approach
> or the other.

I tried to cover a little bit of this in both my xml.com article on
XPathScript [1], and my AxKit talk at ApacheCon. Basically, procedural
code is great for data oriented XML structures, but almost useless for XML
mixed content. For mixed content you really need declarative code. I hope
that XPathScript provides a nice feeling for those who need or want both
(and of course those who like Perl!).

[1] http://www.xml.com/pub/2000/07/05/xpathscript/index.html

-- 
<Matt/>

    /||    ** Director and CTO **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // **     Personal Web Site: http://sergeant.org/     **
     \\//
     //\\
    //  \\


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.