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

Re: transformations

  • From: "Steven E. Harris" <steven.harris@t...>
  • To: xml-dev@l...
  • Date: Tue, 21 Nov 2000 08:01:14 -0800

saxon preview
Steve Muench <smuench@u...> writes:

> How close in your opinion is Michael Kay's <saxon:preview> extension
> documented at:
> 
> http://users.iclway.co.uk/mhkay/saxon/saxon6.0/extensions.html#saxon:preview
> 
> to solving the customer problem that a "streamable subset"
> is trying to accomplish?

Mr. Kay's approach is similar to both XML::Twig and to the Perl
modules I had written on my own. The overlap is in the specific
management of a designated subtree. For my own design, I had opted to
build subtrees *only* for elements designated as "interesting" to a
template. These subtrees were each cleaned up after processing. The
problem there - which I think saxon:preview shares - is that the user
can foil the whole optimization by specifying, say, the root element
as "interesting."

The following paragraph describing saxon:preview surprised me:

> During the matching of a preview element and during the execution of
> the preview template, only part of the source document is
> visible. This part includes the ancestors of the preview element,
> the descendants of the preview element, and all nodes that precede
> the preview element in document order, except for nodes that are
> descendants of another preview element.

In order to expose these ancestors, the rest of the tree must be built
and kept around. That is, with saxon:preview, partial
building/deleting is the exception. My own design and XML::Twig both
build only upon request and discard the rest. saxon:preview is thus
more useful - but with slightly higher memory consumption.

-- 
Steven E. Harris        :: steven.harris@t...
Tenzing                 :: http://www.tenzing.com

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.