moved function to a seperate file
Document listing done in xslt