Xsl template for elements and some restrictions