From: Peter S. <st...@we...> - 2013-04-07 09:12:53
|
Am 04.04.2013 um 23:02 schrieb Christopher Thomson <chr...@ca...>: > I also wonder whether this might be a good use for the map datatype? > > let $pub-dates := > map { > "id1" = 1938, > "id2" = 1975, > "id3" = 1989 > } > > Each id would be a <biblStruct> xml:id. The resulting map would be large, so I don't know if this is viable or not. But an advantage would be having the map functions to manipulate / manage it. That's probably a very elegant solution with XQuery 3.0. Additionally you could store the map in a cache object so you would only need to create it once -- after every reboot or cache:clear(). Best Peter -- Peter Stadler Carl-Maria-von-Weber-Gesamtausgabe Arbeitsstelle Detmold Gartenstr. 20 D-32756 Detmold Tel. +49 5231 975-665 Fax: +49 5231 975-668 stadler at weber-gesamtausgabe.de www.weber-gesamtausgabe.de |