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

Re: Re: using SAX events in URIResolver (Xalan and Sax

Subject: Re: Re: using SAX events in URIResolver (Xalan and Saxon)
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Sun, 16 Jan 2005 12:22:06 -0800
xalan uriresolver
Michael Kay wrote:
I'm very confused by what you're trying to do here.

You've got a transformation T, running in the form of a TransformerHandler,
that calls the document function to access a document D. You say "The
Transformer resolver sends the current TransformerHandler to a method that
uses it to send SAX events." So D is actually the output of T - or have I
misunderstood?

No you did not misunderstand. I just did not know what I was saying/doing. But your confusion has shown me the error of my ways. It is working now!! And it work in both Saxon and Xalan.


woohoo!!

I had thought (guessed...) that the TransformerHandler sends source events to the TemplatesHandler.

I fixed it by extending InputSource to set/get the cache entry. Then extended XMLFilterImpl to take my cache entry as the parent. So when the parse is called on the reader, it gets its cache entry from the InputSource and outputs the list of events.

I don't know if I will use this in the end, but it has been a good learning experience for me.


This sounds to me as if you are trying to get the
transformation to read its own output. Surely it shouldn't be surprising if
this causes some kind of infinite loop?

not if you don't know what you are doing :)


Thanks for your help,
-Rob



Michael Kay http://www.saxonica.com/

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.