cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <>
Subject Re: cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/utilDomHelper .java
Date Wed, 31 Dec 2003 07:46:40 GMT
hm, this comes from the DOMHelper, right?
(a yes, the subjectline says so)

I remember a discussion in the office, way back when Bruno was working 
up to a first commit-worthy version of Woody...

The decission was between using SAX or DOM for the building of the 
form-model... the arguments at the time were basically:

- pro SAX: location information in the API to allow pointing out errors 
in config files in error-messages

- contra SAX: no streaming required and more difficult then needed for 
this type of thing...

he decided to use DOM, and get the location info from the xerces 
specific implementation of DOM (there should be a line in there that 
does that)

He's on holiday until monday and can verify then, but I'm pretty sure 
memory serves correctly...


Vadim Gritsenko wrote:
> Antonio Gallardo wrote:
>> Vadim Gritsenko dijo:
>>> wrote:
>>>> +import org.apache.xerces.dom.NodeImpl;
>>>> +import org.apache.xerces.parsers.DOMParser;
>>>> +import org.apache.xerces.xni.Augmentations;
>>>> +import org.apache.xerces.xni.NamespaceContext;
>>>> +import org.apache.xerces.xni.QName;
>>>> +import org.apache.xerces.xni.XMLAttributes;
>>>> +import org.apache.xerces.xni.XMLLocator;
>>>> +import org.apache.xerces.xni.XNIException;
>>> Can somebody clarify - does it mean that woody works only with xerces? I
>>> have not seen this limitation mentioned on the prominent place, may be
>>> I've just missed it...
>> Don't know. I just expanded this import:
>> import org.apache.xerces.xni.*;
> I know; I had noticed this issue when you expanded the import. The 
> question was to those who are in the know :-)
> Vadim

Marc Portier                  
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                          

View raw message