You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Peter Guyatt <pg...@telesoft-technologies.com> on 2004/04/20 14:30:44 UTC

Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a transformation
where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?>
<npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30" width="40">
				<font face="Arial" size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status is osf -->
	   				<xsl:choose>
	   					<xsl:when test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow" align="center" height="30">
								<font face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the resource is oos and if so offer to activate -->
							<xsl:when test="npp/cgmpprocess/bepport/status='oos'">
								<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going standby for all local
plane security states -->
			<xsl:choose>
				<xsl:when test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/npp/security/localstate='Standby'">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/npp/security/localstate='Going Standby'">
									<td bgcolor="#33FF00" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
									</td>
								</xsl:when>
								<!-- display red for all other local plane security states -->
								<xsl:otherwise>
									<td bgcolor="red" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
									</td>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when test="active='true'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of
select="instance"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="lightblue" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of
select="instance"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if test="ip='unknown'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if test="ip='nominal'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if test="ip='backup'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when test="status='oos'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of
select="instance"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="yellow" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of
select="instance"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check that the resource is oos and if so offer to activate -->
								<xsl:when test="status='oos'">
									<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>
								<xsl:otherwise>
									<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going standby for all remote
plane security states -->
			<xsl:choose>
				<xsl:when test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/npp/security/remotestate='Standby'">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/npp/security/remotestate='Going Standby'">
									<td bgcolor="#33FF00" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
									</td>
								</xsl:when>
								<!-- display red for all other remote plane security states -->
								<xsl:otherwise>
									<td bgcolor="red" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
									</td>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when test="active='true'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance -
64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="lightblue" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance -
64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if test="ip='unknown'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if test="ip='nominal'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if test="ip='backup'">
								<td bgcolor="#33FF00" align="center" height="30">
									<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when test="status='oos'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance -
64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="yellow" align="center" height="30">
									<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance -
64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when test="npp/slexprocess/status='oos'">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos -->
						<xsl:when test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow" align="center" height="30">
								<font face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going standby for all local
plane security states -->
			<xsl:choose>
				<xsl:when test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/npp/security/localstate='Standby'">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/npp/security/localstate='Going Standby'">
									<td bgcolor="#33FF00" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
									</td>
								</xsl:when>
								<!-- display red for all other local plane security states -->
								<xsl:otherwise>
									<td bgcolor="red" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
									</td>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="status='oos'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="yellow" align="center" height="30">
									<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check that the resource is oos and if so offer to activate -->
								<xsl:when test="status='oos'">
									<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>
								<xsl:otherwise>
									<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going standby for all remote
plane security states -->
			<xsl:choose>
				<xsl:when test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="/npp/security/remotestate='Standby'">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="/npp/security/remotestate='Going Standby'">
									<td bgcolor="#33FF00" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
									</td>
								</xsl:when>
								<!-- display red for all other remote plane security states -->
								<xsl:otherwise>
									<td bgcolor="red" align="center" height="30">
										<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
									</td>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="status='oos'">
								<td bgcolor="red" align="center" height="30">
									<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td bgcolor="yellow" align="center" height="30">
									<font face="Arial" size="2"><b>DM Pair <xsl:value-of
select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red" align="center" height="30">
							<font face="Arial" size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="npp/empprocess/status='oos'">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow" align="center" height="30">
								<font face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow" align="center" height="30">
								<font face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the resource is oos and if so offer to activate -->
							<xsl:when test="npp/empprocess/empport/status='oos'">
								<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="#33FF00" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red" align="center" height="30">
								<font face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center" height="30">
						<font face="Arial" size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center" height="30">
						<font face="Arial" size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00" align="center" height="30">
							<font face="Arial" size="2"><b>Inter-Chassis Link <xsl:value-of
select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red" align="center" height="30">
							<font face="Arial" size="2"><b>Inter-Chassis Link <xsl:value-of
select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


RE: Problem with transforming documents with french characters

Posted by Gautam Pachnanda <gp...@b2bnet.org.uk>.
Hi,

I have corrected the template

The CDATA Section was 
 

  <![CDATA[ é ]]> (incorrect)
Instead of
  <![CDATA[é]]>(correct)


There are no spaces now

G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com] 
Sent: 20 April 2004 16:46
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters

Hi,

	Thanks for all your help, below is a copy of the template that you
sent:

<xsl:template name="replaceEntity">
  <xsl:param name="string"/>
  <xsl:choose>
    <xsl:when test="contains($string,'é')">
      <xsl:value-of select="substring-before($string,'é')"/>
      <![CDATA[é]]>
      <xsl:call-template name="replaceEntity">
        <xsl:with-param name="string"
select="substring-after($string,'é')"/>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$string"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

It is still adding an extra space between the two characters.

I was wondering how come xalan can not handle this character. Can I use a
different encoding to solve this problem or is the above the only way?

Thanks again

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 16:35
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Ensure that the template at the top is <![CDATA[ é]]> I might have put
<![CDATA[  é ]]> and that will put an extra space.


PS: if not in the template it might be in the xsl:call-template


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 16:30
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters

Hi There,

	Thanks for the reply, how do I remove the space between the newly
inserted characters ?

so that DM Pair 10 (sim10 é f) now reads DM Pair 10 (sim10éf)

Thanks

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 14:45
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Try this. You should set the target character encoding and take into account
the entity references for  French Characters


Regards,


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 13:31
To: xalan-dev@xml.apache.org
Subject: Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a
transformation where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?> <npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30"
width="40">
				<font face="Arial"
size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status
is osf -->
	   				<xsl:choose>
	   					<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each
select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when
test="npp/slexprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos
-->
						<xsl:when
test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance - 16"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/empprocess/empport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when
test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when
test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each
select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

RE: Problem with transforming documents with french characters

Posted by Peter Guyatt <pg...@telesoft-technologies.com>.
Hi,

	Thanks for all your help, below is a copy of the template that you sent:

<xsl:template name="replaceEntity">
  <xsl:param name="string"/>
  <xsl:choose>
    <xsl:when test="contains($string,'é')">
      <xsl:value-of select="substring-before($string,'é')"/>
      <![CDATA[é]]>
      <xsl:call-template name="replaceEntity">
        <xsl:with-param name="string"
select="substring-after($string,'é')"/>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$string"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

It is still adding an extra space between the two characters.

I was wondering how come xalan can not handle this character. Can I use a
different encoding to solve this problem or is the above the only way?

Thanks again

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 16:35
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Ensure that the template at the top is <![CDATA[ é]]> I might have put
<![CDATA[  é ]]> and that will put an extra space.


PS: if not in the template it might be in the xsl:call-template


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 16:30
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters

Hi There,

	Thanks for the reply, how do I remove the space between the newly
inserted characters ?

so that DM Pair 10 (sim10 é f) now reads DM Pair 10 (sim10éf)

Thanks

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 14:45
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Try this. You should set the target character encoding and take into account
the entity references for  French Characters


Regards,


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 13:31
To: xalan-dev@xml.apache.org
Subject: Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a
transformation where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?> <npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30"
width="40">
				<font face="Arial"
size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status
is osf -->
	   				<xsl:choose>
	   					<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each
select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when
test="npp/slexprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos
-->
						<xsl:when
test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance - 16"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/empprocess/empport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when
test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when
test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each
select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


RE: Problem with transforming documents with french characters

Posted by Gautam Pachnanda <gp...@b2bnet.org.uk>.
Ensure that the template at the top is <![CDATA[ é]]> I might have put
<![CDATA[  é ]]> and that will put an extra space.


PS: if not in the template it might be in the xsl:call-template 


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com] 
Sent: 20 April 2004 16:30
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters

Hi There,

	Thanks for the reply, how do I remove the space between the newly
inserted characters ?

so that DM Pair 10 (sim10 é f) now reads DM Pair 10 (sim10éf)

Thanks

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 14:45
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Try this. You should set the target character encoding and take into account
the entity references for  French Characters


Regards,


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 13:31
To: xalan-dev@xml.apache.org
Subject: Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a
transformation where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?> <npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30"
width="40">
				<font face="Arial"
size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status
is osf -->
	   				<xsl:choose>
	   					<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each
select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when
test="npp/slexprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos
-->
						<xsl:when
test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance - 16"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/empprocess/empport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when
test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when
test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each
select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


RE: Problem with transforming documents with french characters

Posted by Peter Guyatt <pg...@telesoft-technologies.com>.
Hi There,

	Thanks for the reply, how do I remove the space between the newly inserted
characters ?

so that DM Pair 10 (sim10 é f) now reads DM Pair 10 (sim10éf)

Thanks

Pete


-----Original Message-----
From: Gautam Pachnanda [mailto:gpachnanda@b2bnet.org.uk]
Sent: 20 April 2004 14:45
To: xalan-dev@xml.apache.org
Subject: RE: Problem with transforming documents with french characters


Try this. You should set the target character encoding and take into account
the entity references for  French Characters


Regards,


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com]
Sent: 20 April 2004 13:31
To: xalan-dev@xml.apache.org
Subject: Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a
transformation where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?> <npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30"
width="40">
				<font face="Arial"
size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status
is osf -->
	   				<xsl:choose>
	   					<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each
select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when
test="npp/slexprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos
-->
						<xsl:when
test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>

<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>

</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->

<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>

</td>

</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance - 16"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">

<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/empprocess/empport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when
test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when
test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each
select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


RE: Problem with transforming documents with french characters

Posted by Gautam Pachnanda <gp...@b2bnet.org.uk>.
Try this. You should set the target character encoding and take into account
the entity references for  French Characters


Regards, 


G Pachnanda

[Technical Director]

B2B Net UK Ltd


-----Original Message-----
From: Peter Guyatt [mailto:pguyatt@telesoft-technologies.com] 
Sent: 20 April 2004 13:31
To: xalan-dev@xml.apache.org
Subject: Problem with transforming documents with french characters

Hi There,

	I have a problem with displaying French characters after a
transformation where the characters are replaced by two '?'.

I am using Xerces-J 1.6.2 and Xalan-J 2.6.0

XML File

<?xml version="1.0" encoding="iso-8859-1" ?> <npp>
	  <localdmpair>
		  <nodename>sim10éf</nodename>
		  <node0status>not_bound</node0status>
		  <node0iplink>oos</node0iplink>
		  <node0ipaddr>172.16.2.188</node0ipaddr>
		  <node1status>not_bound</node1status>
		  <node1iplink>oos</node1iplink>
		  <node1ipaddr>172.16.2.78</node1ipaddr>
	  </localdmpair>
</npp>

Stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:template match="/">

	<h3 align="center">System Status</h3>

	<table border="0">
		<tr/>
	</table>

	<table border="0">
		<tr>
			<td bgcolor="#33FF00" align="center" height="30"
width="40">
				<font face="Arial"
size="2"><b>NPP</b></font>
			</td>
		</tr>

		<xsl:choose>
			<xsl:when test="npp/cgmpprocess/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP Process</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/cgmpprocess/bepport/status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>BEP Port</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
						</td>
	   			</xsl:when>
	   			<xsl:otherwise>
	   				<!-- check that the resource status
is osf -->
	   				<xsl:choose>
	   					<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:when>
	   					<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>BEP Port</b></font>
							</td>
	   					</xsl:otherwise>
	   				</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
BEP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate BEP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r
esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the BEP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate BEP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
		   		</xsl:otherwise>
		   	</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
	
</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->
	
<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
	
</td>
	
</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- local BEP session status -->
		<xsl:for-each select="npp/cgmpprocess/bepport/localsession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
						</td>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance"/> (Client
ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this BEP Instance ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate BEP Instance
<xsl:value-of select="instance"/></a>
								</xsl:when>
	
<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this BEP Instance ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate BEP Instance
<xsl:value-of select="instance"/></a>
	
</xsl:otherwise>
							</xsl:choose>
						</td>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of local bep sessions -->
		<tr>
			<td/>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
	
</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->
	
<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
	
</td>
	
</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote bep sessions -->
		<xsl:for-each
select="npp/cgmpprocess/bepport/remotesession">
			<tr>
				<td/>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<xsl:choose>
							<xsl:when
test="active='true'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="lightblue" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<tr>
							<td/>
							<td/>
							<td/>
							<td/>
							<td/>
							<xsl:if
test="ip='unknown'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Unknown)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='nominal'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Nominal)</b></font>
								</td>
							</xsl:if>
							<xsl:if
test="ip='backup'">
								<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b>IP Link Status (Backup)</b></font>
								</td>
							</xsl:if>
						</tr>
	   				</xsl:when>
	   				<xsl:otherwise>
	   					<!-- different display -->
	   					<xsl:choose>
	   						<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">
	
<font face="Arial" size="2"><b>BEP <xsl:value-of select="instance - 64"/>
(Client ID <xsl:value-of select="clientid"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
	   				</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
		<!-- end of remote bep sessions -->
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/slexprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SLEX Process</b></font>
					</td>
				</xsl:when>
				<!-- different display -->
	   			<xsl:otherwise>
	   				<xsl:choose>
	   					<xsl:when
test="npp/slexprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
	   			</xsl:otherwise>
			</xsl:choose>
    	</tr>
		<tr>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/dmmpprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<!-- check if status is oos
-->
						<xsl:when
test="npp/dmmpprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>DMMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all local plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/localstate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/localstate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/localstate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/localstate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
	
</td>
								</xsl:when>
								<!-- display
red for all other local plane security states -->
	
<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/localstate"/></b></font>
	
</td>
	
</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of local DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/localdmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
						<td>
							<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">
	
<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance"/>
(<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
						<td>
							<xsl:choose>
								<!-- check
that the resource is oos and if so offer to activate -->
								<xsl:when
test="status='oos'">
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
bring this DM Pair ({instance}) into service'; return true;"
onmouseout="window.status=''; return true;">Activate DM Pair <xsl:value-of
select="instance"/></a>
								</xsl:when>
	
<xsl:otherwise>
									<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i
nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate this DM Pair ({instance})'; return true;"
onmouseout="window.status=''; return true;">Deactivate DM Pair <xsl:value-of
select="instance"/></a>
	
</xsl:otherwise>
							</xsl:choose>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of local DM pair status -->
		<tr>
			<td/>
			<td/>
			<!-- display green for worker/standby and going
standby for all remote plane security states -->
			<xsl:choose>
				<xsl:when
test="/npp/security/remotestate='Worker'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b><xsl:value-of select="/npp/security/remotestate"/></b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="/npp/security/remotestate='Standby'">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when
test="/npp/security/remotestate='Going Standby'">
									<td
bgcolor="#33FF00" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
	
</td>
								</xsl:when>
								<!-- display
red for all other remote plane security states -->
	
<xsl:otherwise>
									<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b><xsl:value-of
select="/npp/security/remotestate"/></b></font>
	
</td>
	
</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<!-- start of remote DM Pairs -->
		<xsl:for-each select="npp/dmmpprocess/remotedmpair">
			<tr>
				<td/>
				<td/>
				<td/>
				<xsl:choose>
					<xsl:when test="status='ins'">
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>DM Pair <xsl:value-of select="instance - 16"/> (<xsl:value-of
select="nodename"/>)</b></font>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when
test="status='oos'">
								<td
bgcolor="red" align="center" height="30">
	
<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td
bgcolor="yellow" align="center" height="30">
	
<font face="Arial" size="2"><b>DM Pair <xsl:value-of select="instance -
16"/> (<xsl:value-of select="nodename"/>)</b></font>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
			<xsl:if test="node0status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node0status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 0 <xsl:value-of select="node0ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node0iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="node1status='bound_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='bound_not_preffered'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="blue" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="node1status='not_bound'">
				<tr>
					<td/>
					<td/>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DM Node 1 <xsl:value-of select="node1ipaddr"/></b></font>
					</td>
				</tr>
			</xsl:if>
			<xsl:choose>
				<xsl:when test="node1iplink='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>IP Link Status</b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<!-- end of remote DM pair status -->
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Process</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Process</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/empprocess/empport/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP Port</b></font>
					</td>
					<td>
						<a class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
					</td>
	   			</xsl:when>
	   			<xsl:otherwise>
					<xsl:choose>
						<xsl:when
test="npp/empprocess/empport/status='oos'">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:when>
						<xsl:otherwise>
							<td bgcolor="yellow"
align="center" height="30">
								<font
face="Arial" size="2"><b>EMP Port</b></font>
							</td>
						</xsl:otherwise>
					</xsl:choose>
					<td>
						<xsl:choose>
							<!-- check that the
resource is oos and if so offer to activate -->
							<xsl:when
test="npp/empprocess/empport/status='oos'">
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to bring the
EMP Port into service'; return true;" onmouseout="window.status=''; return
true;">Activate EMP Port</a>
							</xsl:when>
							<xsl:otherwise>
								<a
class="row"
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re
source}&amp;instance={npp/empprocess/empport/instance}"
onClick="setChange(true)" onmouseover="window.status='Attempts to deactivate
the EMP Port'; return true;" onmouseout="window.status=''; return
true;">Deactivate EMP Port</a>
							</xsl:otherwise>
						</xsl:choose>
					</td>
	   			</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:choose>
			<xsl:when
test="npp/cgmpprocess/cgmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:when>
	   		<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>CGMP to SLEX IPC Link</b></font>
					</td>
    			</tr>
	   		</xsl:otherwise>
		</xsl:choose>
		<xsl:for-each select="npp/slexprocess/slexipclink">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td
bgcolor="#33FF00" align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:when>
	   			<xsl:otherwise>
					<tr>
						<td/>
						<xsl:if test="instance=0">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to CGMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=1">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to DMMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
						<xsl:if test="instance=2">
							<td bgcolor="red"
align="center" height="30">
								<font
face="Arial" size="2"><b>SLEX to EMP IPC Link <xsl:value-of
select="instance"/></b></font>
							</td>
						</xsl:if>
    				</tr>
	   			</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
		<xsl:choose>
			<xsl:when
test="/npp/dmmpprocess/dmmpipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>DMMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/empprocess/empipclink/status='ins'">
				<tr>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>EMP to SLEX IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when
test="/npp/snmpprocess/snmpipclink/status='ins'">
				<tr>
					<td/>
					<td/>
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td/>
					<td/>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>SNMP to Maintenance IPC Link</b></font>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
		<tr>
			<td/>
			<td/>
			<xsl:choose>
				<xsl:when
test="npp/interchassis/status='ins'">
					<td bgcolor="#33FF00" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:when>
				<xsl:otherwise>
					<td bgcolor="red" align="center"
height="30">
						<font face="Arial"
size="2"><b>Inter-Chassis Links</b></font>
					</td>
				</xsl:otherwise>
			</xsl:choose>
		</tr>
		<xsl:for-each
select="npp/interchassis/interchassconnection">
			<xsl:choose>
				<xsl:when test="status='ins'">
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="#33FF00"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:when>
				<xsl:otherwise>
					<tr>
						<td/>
						<td/>
						<td/>
						<td bgcolor="red"
align="center" height="30">
							<font face="Arial"
size="2"><b>Inter-Chassis Link <xsl:value-of select="instance"/></b></font>
						</td>
					</tr>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
    </table>
</xsl:template>
</xsl:stylesheet>

Many Thanks

Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: Problem with transforming documents with french characters

Posted by Christine Li <jy...@ca.ibm.com>.



Hi, Peter

Sometimes, it depends where you export the output. There are some known
problems about encoding in DOS prompt, you can refer to following link and
see whether it applies to your problem.
http://groups.google.com/groups?hl=en&safe=off&selm=3B5EA161.CD9BB05D%40earthlink.net


Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: jycli@ca.ibm.com


"Peter Guyatt" <pg...@telesoft-technologies.com> wrote on 04/20/2004
08:30:44 AM:

> Hi There,
>
>    I have a problem with displaying French characters after a
transformation
> where the characters are replaced by two '?'.
>
> I am using Xerces-J 1.6.2 and Xalan-J 2.6.0
>
> XML File
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
> <npp>
>      <localdmpair>
>         <nodename>sim10éf</nodename>
>         <node0status>not_bound</node0status>
>         <node0iplink>oos</node0iplink>
>         <node0ipaddr>172.16.2.188</node0ipaddr>
>         <node1status>not_bound</node1status>
>         <node1iplink>oos</node1iplink>
>         <node1ipaddr>172.16.2.78</node1ipaddr>
>      </localdmpair>
> </npp>
>
> Stylesheet:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="/">
>
>    <h3 align="center">System Status</h3>
>
>    <table border="0">
>       <tr/>
>    </table>
>
>    <table border="0">
>       <tr>
>          <td bgcolor="#33FF00" align="center" height="30" width="40">
>             <font face="Arial" size="2"><b>NPP</b></font>
>          </td>
>       </tr>
>
>       <xsl:choose>
>          <xsl:when test="npp/cgmpprocess/status='ins'">
>             <tr>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>CGMP Process</b></font>
>                </td>
>              </tr>
>             </xsl:when>
>             <xsl:otherwise>
>             <tr>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>CGMP Process</b></font>
>                </td>
>              </tr>
>             </xsl:otherwise>
>       </xsl:choose>
>       <tr>
>          <td/>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/cgmpprocess/bepport/status='ins'">
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>BEP Port</b></font>
>                   </td>
>                   <td>
>                      <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r

> esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate
> the BEP Port'; return true;" onmouseout="window.status=''; return
> true;">Deactivate BEP Port</a>
>                   </td>
>                </xsl:when>
>                <xsl:otherwise>
>                   <!-- check that the resource status is osf -->
>                   <xsl:choose>
>                      <xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>BEP
Port</b></font>
>                      </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                      <td bgcolor="yellow" align="center" height="30">
>                         <font face="Arial" size="2"><b>BEP
Port</b></font>
>                      </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                <td>
>                   <xsl:choose>
>                      <!-- check that the resource is oos and if so
> offer to activate -->
>                      <xsl:when
test="npp/cgmpprocess/bepport/status='oos'">
>                         <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r

> esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to bring
the
> BEP Port into service'; return true;" onmouseout="window.status='';
return
> true;">Activate BEP Port</a>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/cgmpprocess/bepport/r

> esource}&amp;instance={npp/cgmpprocess/bepport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate
> the BEP Port'; return true;" onmouseout="window.status=''; return
> true;">Deactivate BEP Port</a>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                </td>
>                </xsl:otherwise>
>             </xsl:choose>
>       </tr>
>       <tr>
>          <td/>
>          <td/>
>          <td/>
>          <!-- display green for worker/standby and going standby for
> all local
plane security states -->
>          <xsl:choose>
>             <xsl:when test="/npp/security/localstate='Worker'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="/npp/security/localstate='Standby'">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <xsl:choose>
>                         <xsl:when
> test="/npp/security/localstate='Going Standby'">
>                            <td bgcolor="#33FF00" align="center"
height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                            </td>
>                         </xsl:when>
>                         <!-- display red for all other local plane
> security states -->
>                         <xsl:otherwise>
>                            <td bgcolor="red" align="center" height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                            </td>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <!-- local BEP session status -->
>       <xsl:for-each select="npp/cgmpprocess/bepport/localsession">
>          <tr>
>             <td/>
>             <td/>
>             <td/>
>             <td/>
>             <xsl:choose>
>                <xsl:when test="status='ins'">
>                   <xsl:choose>
>                      <xsl:when test="active='true'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP
<xsl:value-of
> select="instance"/> (Client ID <xsl:value-of
select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="lightblue" align="center"
height="30">
>                            <font face="Arial" size="2"><b>BEP
<xsl:value-of
> select="instance"/> (Client ID <xsl:value-of
select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                   <td>
>                      <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> deactivate this BEP Instance ({instance})'; return true;"
> onmouseout="window.status=''; return true;">Deactivate BEP Instance
> <xsl:value-of select="instance"/></a>
>                   </td>
>                   <tr>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <xsl:if test="ip='unknown'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Unknown)</b></font>
>                         </td>
>                      </xsl:if>
>                      <xsl:if test="ip='nominal'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Nominal)</b></font>
>                         </td>
>                      </xsl:if>
>                      <xsl:if test="ip='backup'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Backup)</b></font>
>                         </td>
>                      </xsl:if>
>                   </tr>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <!-- different display -->
>                      <xsl:choose>
>                         <xsl:when test="status='oos'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP
<xsl:value-of
> select="instance"/> (Client ID <xsl:value-of
select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="yellow" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP
<xsl:value-of
> select="instance"/> (Client ID <xsl:value-of
select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                   <td>
>                      <xsl:choose>
>                         <!-- check that the resource is oos and if
> so offer to activate -->
>                         <xsl:when test="status='oos'">
>                            <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> bring this BEP Instance ({instance}) into service'; return true;"
> onmouseout="window.status=''; return true;">Activate BEP Instance
> <xsl:value-of select="instance"/></a>
>                         </xsl:when>
>                         <xsl:otherwise>
>                            <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> deactivate this BEP Instance ({instance})'; return true;"
> onmouseout="window.status=''; return true;">Deactivate BEP Instance
> <xsl:value-of select="instance"/></a>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </td>
>                   </xsl:otherwise>
>             </xsl:choose>
>          </tr>
>       </xsl:for-each>
>       <!-- end of local bep sessions -->
>       <tr>
>          <td/>
>          <td/>
>          <td/>
>          <!-- display green for worker/standby and going standby for
> all remote
plane security states -->
>          <xsl:choose>
>             <xsl:when test="/npp/security/remotestate='Worker'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="/npp/security/remotestate='Standby'">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <xsl:choose>
>                         <xsl:when
> test="/npp/security/remotestate='Going Standby'">
>                            <td bgcolor="#33FF00" align="center"
height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                            </td>
>                         </xsl:when>
>                         <!-- display red for all other remote plane
> security states -->
>                         <xsl:otherwise>
>                            <td bgcolor="red" align="center" height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                            </td>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <!-- start of remote bep sessions -->
>       <xsl:for-each select="npp/cgmpprocess/bepport/remotesession">
>          <tr>
>             <td/>
>             <td/>
>             <td/>
>             <td/>
>             <xsl:choose>
>                <xsl:when test="status='ins'">
>                   <xsl:choose>
>                      <xsl:when test="active='true'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP <xsl:
> value-of select="instance -
> 64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="lightblue" align="center"
height="30">
>                            <font face="Arial" size="2"><b>BEP <xsl:
> value-of select="instance -
> 64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                   <tr>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <td/>
>                      <xsl:if test="ip='unknown'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Unknown)</b></font>
>                         </td>
>                      </xsl:if>
>                      <xsl:if test="ip='nominal'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Nominal)</b></font>
>                         </td>
>                      </xsl:if>
>                      <xsl:if test="ip='backup'">
>                         <td bgcolor="#33FF00" align="center" height="30">
>                            <font face="Arial" size="2"><b>IP Link
> Status (Backup)</b></font>
>                         </td>
>                      </xsl:if>
>                   </tr>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <!-- different display -->
>                      <xsl:choose>
>                         <xsl:when test="status='oos'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP <xsl:
> value-of select="instance -
> 64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="yellow" align="center" height="30">
>                            <font face="Arial" size="2"><b>BEP <xsl:
> value-of select="instance -
> 64"/> (Client ID <xsl:value-of select="clientid"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                   </xsl:otherwise>
>             </xsl:choose>
>          </tr>
>       </xsl:for-each>
>       <!-- end of remote bep sessions -->
>       <tr>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/slexprocess/status='ins'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>SLEX Process</b></font>
>                </td>
>             </xsl:when>
>             <!-- different display -->
>                <xsl:otherwise>
>                   <xsl:choose>
>                      <xsl:when test="npp/slexprocess/status='oos'">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX
Process</b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <td bgcolor="yellow" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX
Process</b></font>
>                      </td>
>                   </xsl:otherwise>
>                </xsl:choose>
>                </xsl:otherwise>
>          </xsl:choose>
>        </tr>
>       <tr>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/dmmpprocess/status='ins'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DMMP Process</b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <!-- check if status is oos -->
>                   <xsl:when test="npp/dmmpprocess/status='oos'">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>DMMP
Process</b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <td bgcolor="yellow" align="center" height="30">
>                         <font face="Arial" size="2"><b>DMMP
Process</b></font>
>                      </td>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <tr>
>          <td/>
>          <td/>
>          <!-- display green for worker/standby and going standby for
> all local
plane security states -->
>          <xsl:choose>
>             <xsl:when test="/npp/security/localstate='Worker'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="/npp/security/localstate='Standby'">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <xsl:choose>
>                         <xsl:when
> test="/npp/security/localstate='Going Standby'">
>                            <td bgcolor="#33FF00" align="center"
height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                            </td>
>                         </xsl:when>
>                         <!-- display red for all other local plane
> security states -->
>                         <xsl:otherwise>
>                            <td bgcolor="red" align="center" height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/localstate"/></b></font>
>                            </td>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <!-- start of local DM Pairs -->
>       <xsl:for-each select="npp/dmmpprocess/localdmpair">
>          <tr>
>             <td/>
>             <td/>
>             <td/>
>             <xsl:choose>
>                <xsl:when test="status='ins'">
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>DM Pair <xsl:value-of
> select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
>                   </td>
>                   <td>
>                      <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> deactivate this DM Pair ({instance})'; return true;"
> onmouseout="window.status=''; return true;">Deactivate DM Pair
<xsl:value-of
> select="instance"/></a>
>                   </td>
>                </xsl:when>
>                <xsl:otherwise>
>                   <xsl:choose>
>                      <xsl:when test="status='oos'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>DM Pair
> <xsl:value-of
> select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="yellow" align="center" height="30">
>                            <font face="Arial" size="2"><b>DM Pair
> <xsl:value-of
> select="instance"/> (<xsl:value-of select="nodename"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                   <td>
>                      <xsl:choose>
>                         <!-- check that the resource is oos and if
> so offer to activate -->
>                         <xsl:when test="status='oos'">
>                            <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> bring this DM Pair ({instance}) into service'; return true;"
> onmouseout="window.status=''; return true;">Activate DM Pair
<xsl:value-of
> select="instance"/></a>
>                         </xsl:when>
>                         <xsl:otherwise>
>                            <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={resource}&amp;instance={i

> nstance}" onClick="setChange(true)" onmouseover="window.status='Attempts
to
> deactivate this DM Pair ({instance})'; return true;"
> onmouseout="window.status=''; return true;">Deactivate DM Pair
<xsl:value-of
> select="instance"/></a>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </td>
>                </xsl:otherwise>
>             </xsl:choose>
>          </tr>
>          <xsl:if test="node0status='bound_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node0status='bound_not_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="blue" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node0status='not_bound'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:choose>
>             <xsl:when test="node0iplink='ins'">
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:when>
>             <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="red" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:otherwise>
>          </xsl:choose>
>          <xsl:if test="node1status='bound_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node1status='bound_not_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="blue" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node1status='not_bound'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:choose>
>             <xsl:when test="node1iplink='ins'">
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:when>
>             <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="red" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:otherwise>
>          </xsl:choose>
>       </xsl:for-each>
>       <!-- end of local DM pair status -->
>       <tr>
>          <td/>
>          <td/>
>          <!-- display green for worker/standby and going standby for
> all remote
plane security states -->
>          <xsl:choose>
>             <xsl:when test="/npp/security/remotestate='Worker'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="/npp/security/remotestate='Standby'">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <xsl:choose>
>                         <xsl:when
> test="/npp/security/remotestate='Going Standby'">
>                            <td bgcolor="#33FF00" align="center"
height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                            </td>
>                         </xsl:when>
>                         <!-- display red for all other remote plane
> security states -->
>                         <xsl:otherwise>
>                            <td bgcolor="red" align="center" height="30">
>                               <font face="Arial"
size="2"><b><xsl:value-of
> select="/npp/security/remotestate"/></b></font>
>                            </td>
>                         </xsl:otherwise>
>                      </xsl:choose>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <!-- start of remote DM Pairs -->
>       <xsl:for-each select="npp/dmmpprocess/remotedmpair">
>          <tr>
>             <td/>
>             <td/>
>             <td/>
>             <xsl:choose>
>                <xsl:when test="status='ins'">
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>DM Pair <xsl:value-of
> select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
>                   </td>
>                </xsl:when>
>                <xsl:otherwise>
>                   <xsl:choose>
>                      <xsl:when test="status='oos'">
>                         <td bgcolor="red" align="center" height="30">
>                            <font face="Arial" size="2"><b>DM Pair
> <xsl:value-of
> select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
>                         </td>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <td bgcolor="yellow" align="center" height="30">
>                            <font face="Arial" size="2"><b>DM Pair
> <xsl:value-of
> select="instance - 16"/> (<xsl:value-of select="nodename"/>)</b></font>
>                         </td>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                </xsl:otherwise>
>             </xsl:choose>
>          </tr>
>          <xsl:if test="node0status='bound_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node0status='bound_not_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="blue" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node0status='not_bound'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 0 <xsl:value-of
> select="node0ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:choose>
>             <xsl:when test="node0iplink='ins'">
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:when>
>             <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="red" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:otherwise>
>          </xsl:choose>
>          <xsl:if test="node1status='bound_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node1status='bound_not_preffered'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="blue" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:if test="node1status='not_bound'">
>             <tr>
>                <td/>
>                <td/>
>                <td/>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>DM Node 1 <xsl:value-of
> select="node1ipaddr"/></b></font>
>                </td>
>             </tr>
>          </xsl:if>
>          <xsl:choose>
>             <xsl:when test="node1iplink='ins'">
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:when>
>             <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="red" align="center" height="30">
>                      <font face="Arial" size="2"><b>IP Link
Status</b></font>
>                   </td>
>                </tr>
>             </xsl:otherwise>
>          </xsl:choose>
>       </xsl:for-each>
>       <!-- end of remote DM pair status -->
>       <tr>
>          <td/>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/empprocess/status='ins'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>EMP Process</b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="npp/empprocess/status='oos'">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>EMP
Process</b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <td bgcolor="yellow" align="center" height="30">
>                         <font face="Arial" size="2"><b>EMP
Process</b></font>
>                      </td>
>                   </xsl:otherwise>
>                </xsl:choose>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <tr>
>          <td/>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/empprocess/empport/status='ins'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>EMP Port</b></font>
>                </td>
>                <td>
>                   <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re

> source}&amp;instance={npp/empprocess/empport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate
> the EMP Port'; return true;" onmouseout="window.status=''; return
> true;">Deactivate EMP Port</a>
>                </td>
>                </xsl:when>
>                <xsl:otherwise>
>                <xsl:choose>
>                   <xsl:when test="npp/empprocess/empport/status='oos'">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>EMP
Port</b></font>
>                      </td>
>                   </xsl:when>
>                   <xsl:otherwise>
>                      <td bgcolor="yellow" align="center" height="30">
>                         <font face="Arial" size="2"><b>EMP
Port</b></font>
>                      </td>
>                   </xsl:otherwise>
>                </xsl:choose>
>                <td>
>                   <xsl:choose>
>                      <!-- check that the resource is oos and if so
> offer to activate -->
>                      <xsl:when
test="npp/empprocess/empport/status='oos'">
>                         <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re

> source}&amp;instance={npp/empprocess/empport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to bring
the
> EMP Port into service'; return true;" onmouseout="window.status='';
return
> true;">Activate EMP Port</a>
>                      </xsl:when>
>                      <xsl:otherwise>
>                         <a class="row"
>
href="index.jsp?action=sendMAction&amp;resourceId={npp/empprocess/empport/re

> source}&amp;instance={npp/empprocess/empport/instance}"
> onClick="setChange(true)" onmouseover="window.status='Attempts to
deactivate
> the EMP Port'; return true;" onmouseout="window.status=''; return
> true;">Deactivate EMP Port</a>
>                      </xsl:otherwise>
>                   </xsl:choose>
>                </td>
>                </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <xsl:choose>
>          <xsl:when test="npp/cgmpprocess/cgmpipclink/status='ins'">
>             <tr>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>CGMP to SLEX IPC
> Link</b></font>
>                </td>
>              </tr>
>             </xsl:when>
>             <xsl:otherwise>
>             <tr>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>CGMP to SLEX IPC
> Link</b></font>
>                </td>
>              </tr>
>             </xsl:otherwise>
>       </xsl:choose>
>       <xsl:for-each select="npp/slexprocess/slexipclink">
>          <xsl:choose>
>             <xsl:when test="status='ins'">
>                <tr>
>                   <td/>
>                   <xsl:if test="instance=0">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to CGMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                   <xsl:if test="instance=1">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to DMMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                   <xsl:if test="instance=2">
>                      <td bgcolor="#33FF00" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to EMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                 </tr>
>                </xsl:when>
>                <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <xsl:if test="instance=0">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to CGMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                   <xsl:if test="instance=1">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to DMMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                   <xsl:if test="instance=2">
>                      <td bgcolor="red" align="center" height="30">
>                         <font face="Arial" size="2"><b>SLEX to EMP
> IPC Link <xsl:value-of
> select="instance"/></b></font>
>                      </td>
>                   </xsl:if>
>                 </tr>
>                </xsl:otherwise>
>          </xsl:choose>
>       </xsl:for-each>
>       <xsl:choose>
>          <xsl:when test="/npp/dmmpprocess/dmmpipclink/status='ins'">
>             <tr>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>DMMP to SLEX IPC
> Link</b></font>
>                </td>
>             </tr>
>          </xsl:when>
>          <xsl:otherwise>
>             <tr>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>DMMP to SLEX IPC
> Link</b></font>
>                </td>
>             </tr>
>          </xsl:otherwise>
>       </xsl:choose>
>       <xsl:choose>
>          <xsl:when test="/npp/empprocess/empipclink/status='ins'">
>             <tr>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>EMP to SLEX IPC
> Link</b></font>
>                </td>
>             </tr>
>          </xsl:when>
>          <xsl:otherwise>
>             <tr>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>EMP to SLEX IPC
> Link</b></font>
>                </td>
>             </tr>
>          </xsl:otherwise>
>       </xsl:choose>
>       <xsl:choose>
>          <xsl:when test="/npp/snmpprocess/snmpipclink/status='ins'">
>             <tr>
>                <td/>
>                <td/>
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>SNMP to Maintenance
> IPC Link</b></font>
>                </td>
>             </tr>
>          </xsl:when>
>          <xsl:otherwise>
>             <tr>
>                <td/>
>                <td/>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>SNMP to Maintenance
> IPC Link</b></font>
>                </td>
>             </tr>
>          </xsl:otherwise>
>       </xsl:choose>
>       <tr>
>          <td/>
>          <td/>
>          <xsl:choose>
>             <xsl:when test="npp/interchassis/status='ins'">
>                <td bgcolor="#33FF00" align="center" height="30">
>                   <font face="Arial" size="2"><b>Inter-Chassis
> Links</b></font>
>                </td>
>             </xsl:when>
>             <xsl:otherwise>
>                <td bgcolor="red" align="center" height="30">
>                   <font face="Arial" size="2"><b>Inter-Chassis
> Links</b></font>
>                </td>
>             </xsl:otherwise>
>          </xsl:choose>
>       </tr>
>       <xsl:for-each select="npp/interchassis/interchassconnection">
>          <xsl:choose>
>             <xsl:when test="status='ins'">
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="#33FF00" align="center" height="30">
>                      <font face="Arial" size="2"><b>Inter-Chassis
> Link <xsl:value-of
> select="instance"/></b></font>
>                   </td>
>                </tr>
>             </xsl:when>
>             <xsl:otherwise>
>                <tr>
>                   <td/>
>                   <td/>
>                   <td/>
>                   <td bgcolor="red" align="center" height="30">
>                      <font face="Arial" size="2"><b>Inter-Chassis
> Link <xsl:value-of
> select="instance"/></b></font>
>                   </td>
>                </tr>
>             </xsl:otherwise>
>          </xsl:choose>
>       </xsl:for-each>
>     </table>
> </xsl:template>
> </xsl:stylesheet>
>
> Many Thanks
>
> Pete
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xalan-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org