<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	<xsl:template match="/">
		<h1 _locID="L_string01_Text">Services Web sur l'ordinateur local</h1>
		<p _locID="L_string02_Text">Les services Web et les documents de découverte disponibles sur votre
			ordinateur de développeur VS.NET sont répertoriés ci-dessous. Cliquez sur le lien du service pour rechercher ce service.</p>
		<table class="listpage" cellpadding="3" cellspacing="1" frame="void" bordercolor="#ffffff" rules="rows" width="100%" align="center">
    	    <xsl:choose>
				<xsl:when test="localDiscovery/contractRef">
					<tr valign="center" align="left">
						<td class="header" width="125" _locID="L_string03_Text" nowrap="true">Services</td>
						<td class="header" id="120">URL</td>
					</tr>
					<xsl:for-each select="localDiscovery/contractRef" order-by="@ref">
						<tr valign="center" align="left">
							<td class="tbltext">
								<a _locID="L_string04_Text"><xsl:attribute name="href"><xsl:value-of select="@ref"/></xsl:attribute><xsl:value-of select="@name"/></a>
							</td>
							<td class="tbltext" nowrap="true">
								<xsl:value-of select="@ref"/>
							</td>
						</tr>
					</xsl:for-each>
				</xsl:when>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="localDiscovery/discoveryRef">
					<tr valign="center" align="left">
						<td class="header" _locID="L_string05_Text">Documents de découverte</td>
						<td class="header" _locID="L_string06_Text">URL</td>
					</tr>
					<xsl:for-each select="localDiscovery/discoveryRef" order-by="@ref">
						<tr valign="center" align="left">
							<td class="tbltext">
								<a _locID="L_string07_Text"><xsl:attribute name="href"><xsl:value-of select="@ref"/></xsl:attribute><xsl:value-of select="@name"/></a>
							</td>
							<td class="tbltext" nowrap="true">
								<xsl:value-of select="@ref"/>
							</td>
						</tr>
					</xsl:for-each>
				</xsl:when>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="discoveryError">
            		<tr valign="center" align="left">
    					<tr>
    						<td class="tbltext" colspan="2" _locID="L_string09_Text">Erreur lors de l'énumération des services sur l'ordinateur local : </td>
    					</tr>
            		</tr>
					<xsl:for-each select="discoveryError">
						<tr valign="center" align="left">
							<td class="tbltext">
								<xsl:value-of select="@errorMessage"/>
							</td>
						</tr>
					</xsl:for-each>
				</xsl:when>
			</xsl:choose>

			<xsl:choose>
				<xsl:when test="localDiscovery/contractRef | localDiscovery/discoveryRef | discoveryError"></xsl:when>
				<xsl:otherwise>
					<tr>
						<td class="tbltext" colspan="2" _locID="L_string08_Text">Aucun - Aucun service Web n'a été trouvé sur l'ordinateur local.</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</table>
	</xsl:template>
</xsl:stylesheet>
