I'm trying to write my xsl to display an unordered list fromt the xml file
where location is equal to top:
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/index.aspx" title="Home" location="top">
<siteMapNode url="~/about_us/index.aspx" title="About Us" location="top" >
<siteMapNode url="~/about_us/mediaroom.aspx" title="Media Room" />
<siteMapNode url="~/about_us/awards.aspx" title="Awards" />
<siteMapNode url="~/about_us/employment.aspx" title="Employment
Opportunities" />
<siteMapNode url="~/about_us/events.aspx" title="Trade Show Calendar" />
<siteMapNode url="~/about_us/partners.aspx" title="Partners and Alliances"
/>
<siteMapNode url="~/about_us/wrcmedia.aspx" title="WRC Media" />
</siteMapNode>
<siteMapNode url="~/contact.aspx" title="Contact Us" location="top" />
<siteMapNode url="http://www.mysite.com" title="Customer Support"
location="top" />
<siteMapNode url="~/sitemap.aspx" title="Site Map" location="top" />
</siteMap>
xsl:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<ul>
<xsl:for-each select="siteMapNode/location/top">
<li>
<a href="{@url}"><xsl:value-of select="@title"/></a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>