fix for recursive relations
xsl mode setting
added default xsl templates
some more bug fixing