[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Re: How do you set the XSLProcessor as a DocumentHandler ?

Subject: [list4xt] Re: How do you set the XSLProcessor as a DocumentHandler ?
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 25/08/2000 - 18:28


Sebastien,

Sebastien Sahuc wrote:
>
> Hello,
>
> I wonder how do you set the XSLProcessorImpl as a DocumentHandler.
>
> Indeed I'm receiving SAX events from a SAX producer (Cocoon2 filter to be
> more precise), and I would like these SAX events to feed a XSLPRocessor
> instance. Am I asking the right question ? If so is it possible to do it
> simply.

If I understand your question correctly,

xsl.setParser((Parser)sourceParser, (Parser)sheetParser );

should do the trick.

The only thing to note is that Parser is a SAX1 parser and that if you
want to plug a SAX2 parser you should either use the compatibility class
provided with SAX2 or implement both SAX1 and SAX2 (AElfred2 is a good
example of such an implementation).

> In fact I'm trying to write an Filter for the cocoon2 project, and I know
> Eric to be on the cocoon list, would you help me ?

Of course !
(even if I wasn't on the cocoon list :)
 
> Thanks in advance,

Hope this helps.

Eric
 
> Sebastien
>
> --
> Mailing list for the XT users community. (http://cannabismerchantaccounts.com)
> (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://mancosvalleybank.com
http://merchantaccountinformation.com -           http://greenvillemarketinglab.com              http://androidsoftwaredownload.com
------------------------------------------------------------------------

-- Mailing list for the XT users community. (http://farmingtonchamber.org) (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org


A site designed by Dyomedea