<?xml version="1.0"?>

<!-- Starting a document template -->

<!-- Since there is no templates defined for each child, the default template is executed for each child -->
<!-- The default template for each child will:                                          -->
<!--      If a child has its own child elements, it will apply a template to each child -->
<!--      If a child has text content, it will output the text                          -->
<!--      If a child has attributes,   the attributes are ignored                       -->

<!-- Since the default child templates does not call the default attribute template  --> 
<!-- I forced the execution of the default attribute template --> 


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:template match="/">
		<html>
		<head>
		<title>A Document Template + Attribute</title>
		</head>
		<body>
			<xsl:apply-templates />		<!--apply template to each child -->

			<xsl:apply-templates select="addrbook/entry/address/@country" />  
		<hr/>
		</body>
		</html>
	</xsl:template>	

</xsl:stylesheet>