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

RE: transform optimization for a schema-constrained do

Subject: RE: transform optimization for a schema-constrained domain
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 11:20:08 +0100
document transform optimizations
> > Are there any XSLT processors that can use a schema for the
> input domain to
> > improve performance?
>
> It would provide for some optimizations. The most obvious example is
> that the processor could use a table which tells whether elements
> may have certain descendents to optimize tree scanning for expressions
> involving //

This is true. My current view, though, is that if you only do a single
transformation on a document, it's probably faster to collect this
information from the document instance as it's being loaded than to (a)
collect it from the schema and (b) validate the document against the schema.
It only becomes an optimisation when the work of (a) and (b) can be
amortized over a large number of transformations, which is more likely to be
the case in an XML database scenario than with most XSLT scenarios.
>
> This leads to my last point: A DTD/Schema-aware XSL processor
> could warn
> me of misspellings and incompatibilities of the XML structure
> and XPath-
> expression in the XSL.

This kind of static type checking is very much part of the philosophy of
XQuery. It's difficult to know where to stop, though. Suppose you have a
query designed to check for an input condition that shouldn't exist (e.g. an
A appearing as a descendant of a B, or an attribute whose string-value is
empty). Then the schema is enhanced so that the condition can't exist. Is
the query now in error?

As the XSL WG and the XQuery WG are working together on the development of
XPath 2.0, such debates are a very hot topic!

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.