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

Re: Doubts regarding XSL and DOM

Subject: Re: Doubts regarding XSL and DOM
From: keshlam@xxxxxxxxxx
Date: Thu, 29 Oct 1998 15:30:43 -0500
Re: Doubts regarding XSL and DOM
>But what if I want to "traverse" my XML source tree from XSL apart from
>"querying" it?

Depends on what you mean by "traverse". Might help if you provided a
concrete example.

If you mean find another node of the tree relative to this one and run an
XSL processing template on it, you issue another query. The query language
should be rich enough to handle this.

If you mean you want to do something more complicated than XSL's query
language and templates will support, you either don't use XSL, or you use
the escape mechanisms that may (or may not) be designed into XSL. Early
versions of XSL did have some support for Ecmascript, which was given
DOM-like read-only access into the model... The current spec doesn't have
that feature, but I get the impression that it hasn't yet been ruled out
for future versions.

>a) XSL needs to be more than just a query language.

It is. It's a template/transformation language.

>b) An object model would be needed to enable the traversal

Not if the queries can express everything that the templates need to be
able to find and the templates can express everything that needs to be done
to generate the output XML.
Note that "everything" doesn't mean solve every possible transformation
problem. XSL isn't a fully general programming language and isn't intended
to be. 'Way back when, someone stated that XSL ought to be able to handle
90% of the likely transformations, and I think that's a realistic goal.
There will always be some tasks for which you'll use hand-coded processing
-- either via a scripting mechanism within XSL, _if_ that's added, or by
stepping back and building your own program that operates directly on the
DOM.

______________________________________
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.



 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.