> >>We just need to make a model that reflect what X-Path does.
> >An XPath expression evaluates to a set of nodes from the XML tree
> >structure, a boolean value, a number or a string.
> Boolean value? string?
> I thought X-Path just returned at set of DOM nodes, where each DOM nodes
> may be of the types you mention below:
Nope. For example the return type of:
count('/html/body/p')
is the number of matching elements.
Or for string:
concat('foo', 'bar', 'baz')
> original record instance. And the nodes are selfdescribing in their XML
> form.
What is the XML form of an attribute node?
> What is worth having is - within the chema for SRW/SRU - the notion of
> the nodeSet and each node. Each item is an XML fragment. By doing so,
Unless it's a text node, in which case it's just a string. Or an attribute
note, which just can't be encoded without some special format.
> Changes to SRW schema:
> Make recordData optional
> Make nodesSet a sequence of node of XML fragment. Make nodeSet optional.
> (just to be clear, nodeSet and node are never encoded as strings).
I don't see what this gains us?
Rob
--
,'/:. Dr Robert Sanderson ([log in to unmask])
,'-/::::. http://www.o-r-g.org/~azaroth/
,'--/::(@)::. Special Collections and Archives, extension 3142
,'---/::::::::::. Nebmedes: http://nebmedes.o-r-g.org:8000/
____/:::::::::::::.
I L L U M I N A T I
|