<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" omit-xml-declaration="yes"/>

	<xsl:template match="pages">
		<xsl:choose>
			<xsl:when test="page[@title = 'About Us' or @title = 'Contact Us']">
				<ul style="border: 5px solid red;">
					<xsl:apply-templates select="page" />
				</ul>
			</xsl:when>
			<xsl:otherwise>
				<ul style="border: 5px solid blue;">
					<xsl:apply-templates select="page" />
				</ul>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<xsl:template match="page">
		<xsl:variable name="path">
			<xsl:value-of select="../../@src" /><xsl:value-of select="@src" />
		</xsl:variable>				
		<li>
			<a href="{$path}"><xsl:value-of select="@title" /></a>
			<xsl:apply-templates select="pages" />
		</li>
	</xsl:template>
	
</xsl:stylesheet>