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

Re: SAX2 and Transformation ?

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: Sunny <sandeepsethi@e...>, xml-dev@x...
  • Date: Sun, 06 Aug 2000 14:45:34 -0400

sax2 transformation
At 02:01 PM 8/6/00 -0400, Sunny wrote:
>As I understand it  - SAX lets you stream the xml data, providing events
>that can be trapped as and when needed.
>So, biggest advantage - it doesn't  have to maintain an in-memory tree of
>the document.
>Two questions here -
>1) Without loading the document, how does a sax-based parser know that the
>document is valid  and well-formed ? Is that something that I sacrifice when
>I use a sax - parser ?

It doesn't know up front, so it has to die in the middle of the document
when it encounters an error.  Your application would be wise not to commit
information until the document completes.

>2a) Now, the document hasn;t been loaded yet , so how do I apply
>transformation or xsl-fo to the xml-document ? Is that something that 'they'
>are still trying to figure out - or is there some documentation somewhere
>
>2b) Does Xalan do this ?

XSLT processors like XT can take SAX events and then report new SAX events
from the transformation.  I think SAXON does this too, but I don't know
about Xalan.  I think Xalan demands a DOM.  XT builds an internal tree, but
it's smaller than a full DOM tree would be.

Simon St.Laurent
XML Elements of Style / XML: A Primer, 2nd Ed.
http://www.simonstl.com - XML essays and books

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.