check for xsl instead of failing when user wants to create a new document