<?xml version="1.0"?> <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"> <xsl:template match="*"> <xsl:for-each select="namespace::*"> <namespace> <name><xsl:value-of select="name()"/></name> <uri><xsl:value-of select="."/></uri> <parent><xsl:copy-of select=".."/></parent> </namespace> </xsl:for-each> </xsl:template> </xsl:stylesheet></parent></namespace><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"> <xsl:template match="*"> <xsl:for-each select="namespace::*"> <namespace> <name><xsl:value-of select="name()"/></name> <uri><xsl:value-of select="."/></uri> <parent><xsl:copy-of select=".."/></parent> </namespace> </xsl:for-each> </xsl:template> </xsl:stylesheet></parent></namespace>