1<?xml version="1.0"?> 2<namespace><name>xml</name><uri>http://www.w3.org/XML/1998/namespace</uri><parent><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3<xsl:template match="*"> 4<xsl:for-each select="namespace::*"> 5<namespace> 6<name><xsl:value-of select="name()"/></name> 7<uri><xsl:value-of select="."/></uri> 8<parent><xsl:copy-of select=".."/></parent> 9</namespace> 10</xsl:for-each> 11</xsl:template> 12</xsl:stylesheet></parent></namespace><namespace><name>xsl</name><uri>http://www.w3.org/1999/XSL/Transform</uri><parent><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 13<xsl:template match="*"> 14<xsl:for-each select="namespace::*"> 15<namespace> 16<name><xsl:value-of select="name()"/></name> 17<uri><xsl:value-of select="."/></uri> 18<parent><xsl:copy-of select=".."/></parent> 19</namespace> 20</xsl:for-each> 21</xsl:template> 22</xsl:stylesheet></parent></namespace> 23