<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" encoding="ISO-8859-1"></xsl:output>
<xsl:strip-space elements="pecking-order boss"></xsl:strip-space>
	<xsl:template match="/pecking-order/person">
	<xsl:processing-instruction name="xml-stylesheet">href="normalized.css" type="text/css"</xsl:processing-instruction>
		<pecking-order>
			<person>
				<name><xsl:value-of select="name"></xsl:value-of></name>
				<boss>NULL</boss>
			</person>
			<xsl:apply-templates select="subordinates/person"/>
		</pecking-order>
	</xsl:template>
	<xsl:template match="person">
		<person>
				<name><xsl:value-of select="name"></xsl:value-of></name>
				<boss><xsl:value-of select="../../name"></xsl:value-of></boss>			
		</person>
		<xsl:apply-templates select="subordinates/person"/>
	</xsl:template>
</xsl:stylesheet>

