learning xpath.
When to use // and when not to ? //ELEMENT will get you the node-set all the node matching the element ELEMENT, its very cost and heavy on the parser. Better take caution , when you use this in you template. Here are few links, where it might throws some light , what is that http://www.w3.org/TR/xpath http://www.oreilly.com/catalog/xmlnut/chapter/ch09.html http://www.topxml.com/xsl/tutorials/intro/xsl4.asp http://www.w3schools.com/Xpath/xpath_syntax.asp