adjusted xslt and xquery to handle different relationships. fixed #34