[xquery-talk] Lookup tables or equivalent

David Carlisle davidc at nag.co.uk
Tue Jan 19 14:22:49 PST 2010



> This is why I wouldn't put key values as element names.  It also limits you 
> to valid element names.
> I would use attributes or values as key values.

so would I probably, but it wouldn't look as interesting in a mailing
list reply.


> When I start getting complicated maps I generate a xml structure like this
> <map>
>    <entry key="key">Value</entry>
> ...
> </map>

yes definitely: that was probably the main point of my reply (but perhaps
obsured by the coding style I chose:-) that in xquery you can use xml
structure to  make more interesting mapping structures, you are not
restricted to integer indexed indexing into lists of strings.

David


More information about the talk mailing list