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:[EMAIL PROTECTED]
Sent: 20 April 2004 14:45
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: 20 April 2004 13:31
To: [EMAIL PROTECTED]
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&resourceId={npp/cgmpprocess/bepport/r
esource}&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&resourceId={npp/cgmpprocess/bepport/r
esource}&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&resourceId={npp/cgmpprocess/bepport/r
esource}&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&resourceId={resource}&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&resourceId={resource}&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&resourceId={resource}&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&resourceId={resource}&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&resourceId={resource}&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&resourceId={resource}&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&resourceId={npp/empprocess/empport/re
source}&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&resourceId={npp/empprocess/empport/re
source}&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&resourceId={npp/empprocess/empport/re
source}&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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]