Hi Harsha,
The code
<xsl:template match="//someNode">
<xsl:apply-templates select="*|@*"/>
</xsl:template>
Will select only the children nodes and the attributes of someNode. It WILL NOT selct the PI's and comments.
If you need to select these nodes, you would have to use special node tests for them. these are given below
comment()
processing-instruction()
text()
So to get everything
, the code woudl be
<xsl:template match="//someNode">
<xsl:apply-templates select="*|@*|comment()|processing-instruction()|text
()"/>
</xsl:template>
Hope this helps