<?xml version="1.0" encoding="UTF-8"?>
<!--Designed and generated by Altova StyleVision Professional Edition 2008 rel. 2 sp2 - see http://www.altova.com/stylevision for more information.-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:con="http://www.aadi.no/RTConfigSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:n1="http://www.aadi.no/RTOutSchema" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:altova="http://www.altova.com">
	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
	<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<xsl:variable name="XML" select="/"/>
	<xsl:import-schema schema-location="H:\My Documents\StyleSheet\RTOutSchema.xsd" namespace="http://www.aadi.no/RTOutSchema"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<meta http-equiv="refresh" content="10" />
			</head>
			<body>
				<br/>
				<br/>
				<img>
					<xsl:attribute name="src">
						<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/Aanderaa_banner.jpg&apos;), 2, 1) = ':'">
							<xsl:text>file:///</xsl:text>
						</xsl:if>
						<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/Aanderaa_banner.jpg&apos;), '&#x5c;', '/')"/>
					</xsl:attribute>
					<xsl:attribute name="alt"/>
				</img>
				<hr/>
				<xsl:for-each select="$XML">
					<xsl:for-each select="n1:Device">
						<table style="border:0; " border="1" width="100%">
							<tbody>
								<tr>
									<td style="border:0; " height="114" width="400">
										<xsl:for-each select="@Descr">
											<span style="font-family:MS Sans Serif; font-size:large; font-weight:bolder; ">
												<xsl:value-of select="string(.)"/>
											</span>
										</xsl:for-each>
										<br/>
										<xsl:for-each select="@ProdName">
											<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
												<xsl:value-of select="string(.)"/>
											</span>
										</xsl:for-each>
										<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
											<xsl:text> (</xsl:text>
										</span>
										<xsl:for-each select="@ID">
											<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
												<xsl:value-of select="string(.)"/>
											</span>
										</xsl:for-each>
										<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
											<xsl:text>)</xsl:text>
										</span>
										<br/>
										<hr/>
										<table style="border:0; " border="1" width="100%">
											<tbody>
												<tr>
													<td style="border:0; " height="1" width="270">
														<img style="width:74px; ">
															<xsl:attribute name="src">
																<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/Seaguard_rcm.jpg&apos;), 2, 1) = ':'">
																	<xsl:text>file:///</xsl:text>
																</xsl:if>
																<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/Seaguard_rcm.jpg&apos;), '&#x5c;', '/')"/>
															</xsl:attribute>
															<xsl:attribute name="alt"/>
														</img>
													</td>
													<td style="border:0; " height="1" width="396">
														<table style="border:0; " border="1">
															<tbody>
																<tr>
																	<th style="border:0; font-family:MS Sans Serif; text-align:left; " width="149">
																		<span>
																			<xsl:text>Location</xsl:text>
																		</span>
																	</th>
																	<xsl:for-each select="n1:SiteInfo">
																		<td style="border:0; font-family:MS Sans Serif; font-size:small; text-align:right; ">
																			<xsl:for-each select="n1:Location">
																				<span style="font-size:medium; ">
																					<xsl:apply-templates/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</xsl:for-each>
																</tr>
																<tr>
																	<th style="border:0; font-family:MS Sans Serif; text-align:left; " width="149">
																		<span style="font-size:medium; ">
																			<xsl:text>GeoPosition</xsl:text>
																		</span>
																	</th>
																	<xsl:for-each select="n1:SiteInfo">
																		<td style="border:0; font-family:MS Sans Serif; font-size:small; text-align:right; ">
																			<xsl:for-each select="n1:GeoPosition">
																				<span style="font-size:medium; ">
																					<xsl:apply-templates/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</xsl:for-each>
																</tr>
																<tr>
																	<th style="border:0; font-family:MS Sans Serif; text-align:left; " width="149">
																		<span style="font-size:medium; ">
																			<xsl:text>VerticalPosition</xsl:text>
																		</span>
																	</th>
																	<xsl:for-each select="n1:SiteInfo">
																		<td style="border:0; font-family:MS Sans Serif; font-size:small; text-align:right; ">
																			<xsl:for-each select="n1:VerticalPosition">
																				<span style="font-size:medium; ">
																					<xsl:apply-templates/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</xsl:for-each>
																</tr>
																<tr>
																	<th style="border:0; font-family:MS Sans Serif; text-align:left; " width="149">
																		<span style="font-size:medium; ">
																			<xsl:text>Owner</xsl:text>
																		</span>
																	</th>
																	<xsl:for-each select="n1:SiteInfo">
																		<td style="border:0; font-family:MS Sans Serif; font-size:small; text-align:right; ">
																			<xsl:for-each select="n1:Owner">
																				<span style="font-size:medium; ">
																					<xsl:apply-templates/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</xsl:for-each>
																</tr>
																<tr>
																	<th style="border:0; font-family:MS Sans Serif; text-align:left; " width="149">
																		<span style="font-size:medium; ">
																			<xsl:text>Reference</xsl:text>
																		</span>
																	</th>
																	<xsl:for-each select="n1:SiteInfo">
																		<td style="border:0; font-family:MS Sans Serif; font-size:small; text-align:right; ">
																			<xsl:for-each select="n1:Reference">
																				<span style="font-size:medium; ">
																					<xsl:apply-templates/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</xsl:for-each>
																</tr>
															</tbody>
														</table>
													</td>
													<td style="border:0; " height="1"/>
												</tr>
											</tbody>
										</table>
										<br/>
									</td>
									<td style="border:0; " height="114" width="9"/>
									<td style="border:0; " height="114" width="440">
										<img style="width:32px; ">
											<xsl:attribute name="src">
												<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\System_32x32.PNG&apos;), 2, 1) = ':'">
													<xsl:text>file:///</xsl:text>
												</xsl:if>
												<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\System_32x32.PNG&apos;), '&#x5c;', '/')"/>
											</xsl:attribute>
											<xsl:attribute name="alt"/>
										</img>
										<span style="font-family:MS Sans Serif; font-size:medium; font-weight:bold; ">
											<xsl:text>&#160; </xsl:text>
										</span>
										<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
											<xsl:text>System monitoring</xsl:text>
										</span>
										<hr/>
										<xsl:for-each select="n1:Data">
											<xsl:for-each select="n1:SensorData">
												<xsl:if test="@ProdNo =&apos;SN100&apos;">
													<xsl:for-each select="n1:Parameters">
														<xsl:for-each select="n1:Point">
															<table style="border:0; " border="1" width="100%">
																<tbody>
																	<tr>
																		<td style="border:0; font-weight:bold; " width="150">
																			<xsl:for-each select="@Descr">
																				<span style="font-family:MS Sans Serif; font-size:medium; ">
																					<xsl:value-of select="string(.)"/>
																				</span>
																			</xsl:for-each>
																		</td>
																		<td style="border:0; " width="99">
																			<span style="font-family:MS Sans Serif; font-size:medium; ">
																				<xsl:apply-templates/>
																			</span>
																		</td>
																		<td style="border:0; " width="50">
																			<xsl:for-each select="@Unit">
																				<span style="font-family:MS Sans Serif; font-size:medium; ">
																					<xsl:value-of select="string(.)"/>
																				</span>
																			</xsl:for-each>
																		</td>
																	</tr>
																</tbody>
															</table>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:if>
											</xsl:for-each>
										</xsl:for-each>
									</td>
								</tr>
							</tbody>
						</table>
						<hr/>
						<xsl:for-each select="n1:Data">
							<span style="font-family:MS Sans Serif; font-size:medium; font-weight:bold; ">
								<xsl:text>Record Number: </xsl:text>
							</span>
							<xsl:for-each select="@RecordNumber">
								<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
									<xsl:value-of select="string(.)"/>
								</span>
							</xsl:for-each>
							<span style="font-size:medium; font-weight:bold; ">
								<xsl:text>&#160;</xsl:text>
							</span>
							<br/>
							<span style="font-family:MS Sans Serif; font-size:medium; font-weight:bold; ">
								<xsl:text>Record Time: </xsl:text>
							</span>
							<xsl:for-each select="@Time">
								<span style="font-family:MS Sans Serif; font-size:medium; font-weight:normal; ">
									<xsl:value-of select="substring-after(.,'T')"/>
								</span>
							</xsl:for-each>
							<hr/>
							<table style="border:0; " border="1" width="100%">
								<tbody style="border:0; ">
									<tr style="border:0; ">
										<td style="border:0; ">
											<xsl:for-each select="n1:SensorData">
												<xsl:if test="@ProdNo != &apos;SN100&apos;">
													<br/>
													<table style="border:0; " border="1" width="100%">
														<tbody style="border:0; ">
															<tr style="border:0; ">
																<td style="border:0; " height="32" width="34">
																	<xsl:if test="@ProdName = &apos;Temperature Sensor&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Temperature4060_32x32.png&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Temperature4060_32x32.png&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<xsl:if test="@ProdName = &apos;Conductivity Sensor&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Conductivity4319_32x32.png&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Conductivity4319_32x32.png&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<xsl:if test="@ProdName = &apos;Pressure Sensor&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Pressure4117_32x32.png&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Pressure4117_32x32.png&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<xsl:if test="@ProdName = &apos;Wave And Tide Sensor&apos; or @ProdName = &apos;Tide Sensor&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\WTS4648_32x32.png&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\WTS4648_32x32.png&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<xsl:if test="@ProdName = &apos;Analog Sensors&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Analog_32x32.PNG&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Analog_32x32.PNG&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<br/>
																	<xsl:if test="@ProdName = &apos;System Node&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\System_32x32.PNG&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\System_32x32.PNG&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																	<xsl:if test="@ProdName = &apos;Doppler Current Sensor&apos;">
																		<img>
																			<xsl:attribute name="src">
																				<xsl:if test="substring(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Z-PulseDCS4520_32x32.PNG&apos;), 2, 1) = ':'">
																					<xsl:text>file:///</xsl:text>
																				</xsl:if>
																				<xsl:value-of select="translate(string(&apos;http://www.aadi.no/Aanderaa/Products/RealTime/PictureLib/1/res/32x32\Z-PulseDCS4520_32x32.PNG&apos;), '&#x5c;', '/')"/>
																			</xsl:attribute>
																			<xsl:attribute name="alt"/>
																		</img>
																	</xsl:if>
																</td>
																<td style="border:0; " height="32" width="1"/>
																<td style="border:0; " height="32" width="884">
																	<xsl:for-each select="@Descr">
																		<span style="font-family:MS Sans Serif; font-size:large; font-weight:bold; ">
																			<xsl:value-of select="string(.)"/>
																		</span>
																	</xsl:for-each>
																	<span style="font-family:MS Sans Serif; font-size:large; font-weight:bold; ">
																		<xsl:text> (</xsl:text>
																	</span>
																	<xsl:for-each select="@ID">
																		<span style="font-family:MS Sans Serif; font-size:large; font-weight:bold; ">
																			<xsl:value-of select="string(.)"/>
																		</span>
																	</xsl:for-each>
																	<span style="font-family:MS Sans Serif; font-size:large; font-weight:bold; ">
																		<xsl:text>)</xsl:text>
																	</span>
																</td>
															</tr>
														</tbody>
													</table>
													<hr/>
													<xsl:for-each select="n1:Parameters">
														<xsl:for-each select="n1:Point">
															<xsl:if test="count( n1:Status ) =0">
																<table style="border:0; " border="1" width="100%">
																	<tbody style="border:0; ">
																		<tr style="border:0; ">
																			<td style="border:0; " width="200">
																				<xsl:for-each select="@Descr">
																					<span style="font-family:MS Sans Serif; ">
																						<xsl:value-of select="string(.)"/>
																					</span>
																				</xsl:for-each>
																			</td>
																			<td style="border:0; " width="130">
																				<span style="font-family:MS Sans Serif; ">
																					<xsl:value-of select="string(text())"/>
																				</span>
																			</td>
																			<td style="border:0; " width="50">
																				<xsl:for-each select="@Unit">
																					<span style="font-family:MS Sans Serif; ">
																						<xsl:value-of select="string(.)"/>
																					</span>
																				</xsl:for-each>
																			</td>
																			<td style="border:0; " width="200">
																				<xsl:for-each select="n1:Status">
																					<span style="font-family:MS Sans Serif; ">
																						<xsl:text>(</xsl:text><xsl:value-of select="substring-after(.,':')"/><xsl:text>)</xsl:text>
																					</span>
																				</xsl:for-each>
																			</td>
																		</tr>
																	</tbody>
																</table>
															</xsl:if>
															<xsl:if test="count( n1:Status ) &gt;0">
																<xsl:if test="(number(substring-before(  n1:Status  , &apos;:&apos;))&gt;=81) and (number(substring-before(  n1:Status  , &apos;:&apos;))&lt;=85)">
																	<table style="border:0; " border="1" width="100%">
																		<tbody style="border:0; ">
																			<tr style="border:0; ">
																				<td style="border:0; " width="200">
																					<xsl:for-each select="@Descr">
																						<span style="color:blue; font-family:MS Sans Serif; ">
																							<xsl:value-of select="string(.)"/>
																						</span>
																					</xsl:for-each>
																				</td>
																				<td style="border:0; " width="130">
																					<span style="color:blue; font-family:MS Sans Serif; ">
																						<xsl:value-of select="string(text())"/>
																					</span>
																				</td>
																				<td style="border:0; " width="50">
																					<xsl:for-each select="@Unit">
																						<span style="color:blue; font-family:MS Sans Serif; ">
																							<xsl:value-of select="string(.)"/>
																						</span>
																					</xsl:for-each>
																				</td>
																				<td style="border:0; " width="200">
																					<xsl:for-each select="n1:Status">
																						<span style="color:blue; font-family:MS Sans Serif; ">
																							<xsl:text>(</xsl:text><xsl:value-of select="substring-after(.,':')"/><xsl:text>)</xsl:text>
																						</span>
																					</xsl:for-each>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</xsl:if>
																<xsl:if test="(number(substring-before(  n1:Status  , &apos;:&apos;))&gt;0) and ((number(substring-before(  n1:Status  , &apos;:&apos;))&lt;81) or (number(substring-before(  n1:Status  , &apos;:&apos;))&gt;85))">
																	<table style="border:0; " border="1" width="100%">
																		<tbody style="border:0; ">
																			<tr style="border:0; ">
																				<td style="border:0; " width="200">
																					<xsl:for-each select="@Descr">
																						<span style="color:red; font-family:MS Sans Serif; ">
																							<xsl:value-of select="string(.)"/>
																						</span>
																					</xsl:for-each>
																				</td>
																				<td style="border:0; " width="130">
																					<span style="color:red; font-family:MS Sans Serif; ">
																						<xsl:value-of select="string(text())"/>
																					</span>
																				</td>
																				<td style="border:0; " width="50">
																					<xsl:for-each select="@Unit">
																						<span style="color:red; font-family:MS Sans Serif; ">
																							<xsl:value-of select="string(.)"/>
																						</span>
																					</xsl:for-each>
																				</td>
																				<td style="border:0; " width="200">
																					<xsl:for-each select="n1:Status">
																						<span style="color:red; font-family:MS Sans Serif; ">
																							<xsl:text>(</xsl:text><xsl:value-of select="substring-after(.,':')"/><xsl:text>)</xsl:text>
																						</span>
																					</xsl:for-each>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																</xsl:if>
															</xsl:if>
														</xsl:for-each>
													</xsl:for-each>
													<br/>
												</xsl:if>
											</xsl:for-each>
										</td>
										<td style="border:0; " width="30"/>
										<td style="border:0; " width="28"/>
									</tr>
								</tbody>
							</table>
							<hr/>
						</xsl:for-each>
					</xsl:for-each>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

