For copying the whole tree, rather than specific nodes, to the output, use xsl:copy-of:
<xsl:template match="thought" > <xsl:copy-of select="."/> </xsl:template>
thought node, its attributes, its descendants and all their attributes are copied to the output tree