treebind
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Treebind] TreeBind and Orbeon PresentationServer


From: Eric van der Vlist
Subject: [Treebind] TreeBind and Orbeon PresentationServer
Date: Fri, 09 Sep 2005 21:28:19 +0200

Hi,

I have committed a couple of modifications to the
XmlSax2ObjectAndCollectionPipe class to expose its  underlying
ContentHandler and Object.

These modifications enable the usage of TreeBind in pipelining
frameworks such as Orbeon PresentationServer (OPS) and probably Cocoon
as well (not tested).

I have written a couple of OPS processors using this feature and have
found that TreeBind is very convenient in that context.

I have posted these classes together with their sources to the OPS users
mailing list and they should show up soon in their archives
(http://mail-archive.objectweb.org/ops-users/2005-09/mail1.html).

Using these two new methods, building an "Index" object from the
corresponding XML input can be done as:

XmlSax2ObjectAndCollectionPipe pipe =
        new XmlSax2ObjectAndCollectionPipe();
Xml2JavaObjectJoin.addNamespace2packageInPipe(
        pipe,
        "",
        "org.xmlfr.mail");
readInputAsSAX(context, "index", pipe.getContentHandler() );
Index index = (Index) pipe.getObject(); 

Eric

-- 
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]