cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject Re: XMLDBSource XPathQueries
Date Fri, 23 Apr 2004 15:46:12 GMT
On Fri, 2004-04-23 at 15:27, Andrew Thornton wrote:
> Bruno Dumon wrote:
> > Maybe you could let a factory create the PointerParts, and pass the
> > factory as an argument to the constructor of the parser.
> Seems like that is probably the best idea.
> > Or you could indeed move the processing out of these classes, though
> > that's about the only thing they do...
> Hmm. XPaths don't process documents there's an XPathProcessor for that. 
> Similarly is it correct the XPointers process Contexts?

Not sure what you mean with the word "XPaths" here. Are you referring to
a class or to XPath expressions themselves?

> That being said, I think the XmlnsPart.process() does do the right 
> thing. It sets the namespaces on the Context. Maybe the XPointerPart is 
> trying to do too much. Perhaps the XPointerPart should simply do the 
> XPath with respect to the Context, and not stream?

And what alternative do you propose?

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

View raw message