Re: XMLDBSource XPathQueries

2004-04-23 Thread Bruno Dumon
On Fri, 2004-04-23 at 18:16, Andrew Thornton wrote: > Bruno Dumon wrote: > > On Fri, 2004-04-23 at 15:27, Andrew Thornton wrote: > >>Hmm. XPaths don't process documents there's an XPathProcessor for that. > >>Similarly is it correct the XPointers process Contexts? > > > > > > Not sure what you m

Re: XMLDBSource XPathQueries

2004-04-23 Thread Andrew Thornton
Bruno Dumon wrote: On Fri, 2004-04-23 at 15:27, Andrew Thornton wrote: 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 expr

Re: XMLDBSource XPathQueries

2004-04-23 Thread Bruno Dumon
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 processin

Re: XMLDBSource XPathQueries

2004-04-23 Thread Andrew Thornton
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

Re: XMLDBSource XPathQueries

2004-04-23 Thread Bruno Dumon
On Fri, 2004-04-23 at 11:06, Andrew Thornton wrote: > > > href="test2.xml#xmlns(my=http://localhost/my)xpointer(/page/content/my:abc/*)"/> > > > > > > > > If you to implement a patch allowing to do: > > > > > > xindice:///db/collection/resource#xmlns(my=http://localhost/my)xpointer(/pa

Re: XMLDBSource XPathQueries

2004-04-23 Thread Andrew Thornton
http://localhost/my)xpointer(/page/content/my:abc/*)"/> If you to implement a patch allowing to do: xindice:///db/collection/resource#xmlns(my=http://localhost/my)xpointer(/page/content/my:abc/*) Then I'd happily apply it. Under one condition: old URIs without namespaces / xpointers

Re: XMLDBSource XPathQueries

2004-04-21 Thread Andrew Thornton
Vadim Gritsenko wrote: I don't like this much also. Why don't you suggest the syntax which is already used for xinclude transformer? See examples: http://localhost/my)xpointer(/page/content/my:abc/*)"/> Oops, didn't see that! Sorry... (We're mostly a cinclude shop.) If you to implement a pa

Re: XMLDBSource XPathQueries

2004-04-20 Thread Vadim Gritsenko
Andrew Thornton wrote: Hi! I'm currently trying to use the xmldb source. However I've spotted a problem. The source doesn't currently handle xpaths with namespaces. We have a few suggestions for how to make it do this: ... xmldb:xindice-embed:/xmlns(x=http://apache.org/cocoon/xmldb/1.0)xmlns