The relationship between the XML data hierarchy and the template Level