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

Re: Merging 2 XML's in to 1 output XML (Performance I

Subject: Re: Merging 2 XML's in to 1 output XML (Performance Issue)
From: Elliotte Harold <elharo@xxxxxxxxxxxxxxx>
Date: Fri, 14 Oct 2005 09:30:34 -0400
saxresult output
Michael Kay wrote:

It's actually very difficult to write a ContentHandler that's ready for
anything, and I don't think many people attempt it. For example, most people
assume that namespaces will be notified using the default settings -
unfortunately a ContentHandler with no handle on the parser has no way of
finding out what these settings are. JAXP says nothing about how an XSLT
processor should notify namespace information to a SAXResult, so what is one
to do? There are also new problems in this area, for example is it
legitimate to send XML 1.1 names and namespace undeclarations to a
ContentHandler that hasn't indicated it is prepared to cope with them?

I certainly know that TrAX is underspecified and poor as XML specifications go. This is what comes of specs developed behind closed doors rather than in open processes. There are numerous areas where the TrAX spec is open to interpretation or doesn't fully specify what should happen. But this isn't one of them.

The user supplied a syntactically correct stylesheet and a well-formed input document. The XSLT specification identifies the result tree that should be constructed from these inputs. The content of this result tree can be serialized to a SAXResult by invoking the appropriate methods in SAXResult. There's no justification for just throwing away parts of the tree.

There is one ambiguity. SAX/TrAX is not clear about whether startDocument/endDocument should be called in this case. However, either way you go I can work around it. I have no means to compensate when Saxon simply fails to report parts of the result tree.
o;?Elliotte Rusty Harold elharo@xxxxxxxxxxxxxxx
XML in a Nutshell 3rd Edition Just Published!

Current Thread


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.
First Name
Last Name
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.