>But, I want to set a counter after displaying the every 5 children name I need to display the dotted line
<xsl:for-each select="//child">
<xsl:copy-of select="."/>
<xsl:if test="position() mod 5 = 1">---------</xsl:if>
</xsl:for-each>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference