>one more question provided title="news" how do I traverse back so it prints
Use the ancestor axis
<xsl:for-each select="ancestor-or-self::test">
<xsl:sort select="position()" order="descending" data-type="numeric"/>
<xsl:value-of select="@title"/>
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference