On Wed, 3 Nov 2004, Adam Dickmeiss wrote:
> [email protected]:~/proj/yaz/test$ ../util/cql2xcql
>> dc="first" >dc="second" dc.title=x
> <prefix>
> <identifier>second</identifier>
> </prefix>
> <index>title</index>
My toXCQL() rewriter simply turns the query as sent into XCQL. For
example, if I send a query with SRU and want to reconstruct it later from
the echoed XCQL, then it's not going to be the same if you've resolved all
of the indexes.
If my XCQL->CQL stylesheet assumes that because it will never send a
prefix, it will never get one back, it's going to die on your response.
Secondly it will probably generate bizarre CQL like:
>"second" dc.title any fish
Secondly, it requires knowledge of the context in which the query is sent
to resolve the indexes. If I send:
foo.title = "duck"
And my ZeeRex has a mapping of foo to Dublin Core, then foo should be a
perfectly valid prefix to use. But a stand alone parser will complain
that foo doesn't resolve to anything, because it lacks that context.
Rob
,'/:. Dr Robert Sanderson ([log in to unmask])
,'-/::::. http://www.o-r-g.org/~azaroth/
,'--/::(@)::. Dept. of Computer Science, Room 805
,'---/::::::::::. University of Liverpool
____/:::::::::::::. L5R Shop: http://www.cardsnotwords.com/
I L L U M I N A T I
|