burtonator wrote:
> 
> Rapha�l Luta wrote:
> <snip>
> 
> > Agreed, the fact is that Castor XML <-> Java marshalling has a lot drawbacks
> > currently,
> > I toying with trying a SAX2 or JDOM implementation of the PSML system. If this
> > doesn't prove too time consuming to write I thing will be better off using these,
> > because:
> 
> -1... lets talk more about this though.  A SAX2 or JDOM impl, even if
> you do the code, would be hard to maintain over the long term.  Granted
> Castor isn't perfect but it is FAST and we can also maybe add a patch to
> control the XML -> object mapping.
> 

I'm well aware of the drawbacks of dropping Castor, I just want to have a better 
vision of the risk/effort involved in using JDOM/SAX2

> > - we can really control the Peer API
> 
> We can do this already.

Not exactly, see the issue with the ordering of children in PortletSetFactory...

> 
> > - we can use namespace to integrate external schemas
> 
> we can do that now.  It just isn't pretty.  We can have the Peer API
> handle it in a much nicer manner.
> 

If I have checked corrctly, you can't define independently 2 XMLSchemas
to create 2 APIs and them mix these in a composite document using namespaces.
If you have to define the "external namespace" inside your main schema, you've 
gained nothing by using namespaces.

> > - that will be faster
> 
> arguable.
> 

Sure. But to argue we need implementations to bench...

> > - that will smoothly integrate into Cocoon2
> 
> yes.  this is nice.  We would loose the automatic parsing though.
> 

but we will gain the ability to integrate directly into a cocoon processing 
pipeline.

Currently, I'm not arguing to switch over to SAX2 or JDOM, simply that the 
drawbacks of Castor are important enough to warrant a try with these APIs.

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to