simple xquery script to retrieve detail dynamically (not as one file on init) (needs the whole app to be in existdb (or other xmldb))