(: file: list_ipedsName.xq date: 10-Jun-2010 author: Gary Lewis purpose: Lists the names that IPEDS gave to their data files. The names are not consistent over time (eg, HD2008 in 2008 but IC1991_hdr in 1991), so running this program provides an easy way to retrieve the IPEDS names when needed ... which turns out to be fairly frequently. use: Run from any path location. example: zorba -f -q list_ipedsName.xq -z indent=yes :) { for $i in fn:doc("/home/gml/rwebdb/projects/ipeds/xml/metadata/ipedsFiles.xml")/ipedsFiles/file[@dir_ind = "1"] let $ipedsName := $i/@ipedsName, $year := $i/@year order by $year ascending return }