<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:n1="http://www.naesb.org/" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xsl:output version="1.0" method="html" indent="no" encoding="UTF-8"/>
	<xsl:variable name="XML1" select="/"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
			</head>
			<body>
				<xsl:for-each select="$XML1">
					<span style="color:green; ">
						<xsl:text>&#160;</xsl:text>
					</span>
					<div style="color:green; font-family:Arial; font-size:medium; font-style:italic; text-align:center; " class="title">
						<span class="title">
							<xsl:text>FERC Tariff Filing</xsl:text>
						</span>
					</div>
					<xsl:for-each select="n1:FERC_Filing">
						<div style="text-align:center; ">
							<xsl:for-each select="n1:Database">
								<br/>
								<table style="background-color:#ffffe9; border:solid black thin; width:600; " border="1" width="100%">
									<tbody>
										<tr>
											<td style="border:none; font-family:Garamond; font-size:small; " width="90">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; text-align:left; " class="database">
													<xsl:text>Company ID:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="141">
												<xsl:for-each select="n1:company_id">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="11">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; width:4; " width="12">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; " class="database">
													<xsl:text>Filing ID:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="174">
												<xsl:for-each select="n1:filing_id">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="12">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; " width="153">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; " class="database">
													<xsl:text>Database ID:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="153">
												<xsl:for-each select="n1:database_id">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="10">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<td style="border:none; font-family:Garamond; " width="90">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; " class="database">
													<xsl:text>Filing Type:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="141">
												<xsl:for-each select="n1:filing_type">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="4">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; width:4; " width="12">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Assoc. Filing:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="174">
												<xsl:for-each select="n1:assoc_filing">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="12">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; " width="153">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Suspend:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " width="153">
												<xsl:for-each select="n1:sus_motion">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="1">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<td style="border:none; font-family:Garamond; " width="65">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Fee:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; " colspan="10" width="531">
												<xsl:for-each select="n1:fee">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="4">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<td style="border:none; font-family:Garamond; " colspan="16" width="531">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; " class="database">
													<xsl:text>Filing Title:</xsl:text>
												</span>
												<xsl:for-each select="n1:filing_title">
													<input style="background-color:#d2d2d2; border:non; font-family:Microsoft Sans Serif; font-size:x-small; width:auto; " size="66">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr>
											<td style="border:none; font-family:Garamond; " colspan="16" height="54" width="531">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; " class="database">
													<xsl:text>Tariff Title:</xsl:text>
												</span>
												<xsl:for-each select="n1:database_title">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="62">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr style="border:none; ">
											<td style="border:none; font-family:Garamond; " align="left" colspan="2">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; font-weight:bold; text-decoration:underline; ">
													<xsl:text>Point of Contact</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; width:4; " width="12"/>
											<td style="border:none; font-family:Garamond; " align="left" colspan="3">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; font-weight:bold; text-decoration:underline; ">
													<xsl:text>Authorizing Party</xsl:text>
												</span>
											</td>
										</tr>
										<tr style="border:none; ">
											<td style="border:none; font-family:Garamond; ">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Name:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<xsl:for-each select="n1:poc_fname">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="6">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
												<xsl:for-each select="n1:poc_midinit">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="1">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
												<xsl:for-each select="n1:poc_lname">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="11">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="12"/>
											<td style="border:none; font-family:Garamond; font-size:small; " colspan="3">
												<xsl:for-each select="n1:auth_fname">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="10">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
												<xsl:for-each select="n1:auth_midinit">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="1">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
												<xsl:for-each select="n1:auth_lname">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="11">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr style="border:none; ">
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Email:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<xsl:for-each select="n1:poc_email">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="24">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="12"/>
											<td style="border:none; font-family:Garamond; font-size:small; " colspan="3">
												<xsl:for-each select="n1:auth_email">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="22">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
										<tr style="border:none; ">
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Phone:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<xsl:for-each select="n1:poc_phone">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; ">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="12"/>
											<td style="border:none; font-family:Garamond; font-size:small; " colspan="3"/>
										</tr>
										<tr>
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
													<xsl:text>Title:</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; ">
												<span style="font-family:Microsoft Sans Serif; font-size:x-small; font-weight:bold; text-align:center; ">
													<xsl:text>N/A</xsl:text>
												</span>
											</td>
											<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="12"/>
											<td style="border:none; font-family:Garamond; font-size:small; " colspan="3">
												<xsl:for-each select="n1:auth_title">
													<input style="background-color:#d2d2d2; font-family:Microsoft Sans Serif; font-size:x-small; " size="23">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</td>
										</tr>
									</tbody>
								</table>
							</xsl:for-each>
						</div>
						<hr style="color:gray; font-size:larger; line-height:20; "/>
						<div style="color:green; font-family:Arial; font-size:medium; font-style:italic; position:center; text-align:center; " class="title">
							<span>
								<xsl:text>Attachments</xsl:text>
							</span>
							<br/>
							<br/>
							<table style="border:black solid thin ; font-family:Microsoft Sans Serif; font-size:x-small; text-align:center; " border="1">
								<thead>
									<tr style="background-color:#ffffe9; ">
										<td align="center">
											<span style="font-weight:bold; text-align:center; text-decoration:underline; ">
												<xsl:text>Reference Code</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-align:center; text-decoration:underline; ">
												<xsl:text>Waiver</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-align:center; text-decoration:underline; ">
												<xsl:text>Filename</xsl:text>
											</span>
										</td>
										<td align="center" width="174">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Title</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-align:center; text-decoration:underline; ">
												<xsl:text>Security Level</xsl:text>
											</span>
										</td>
									</tr>
								</thead>
								<tbody>
									<xsl:for-each select="n1:Attachment">
										<tr style="text-align:center; ">
										<xsl:if test="(position() mod 2 = 1)">
											<xsl:attribute name="bgcolor">#EEEEFF</xsl:attribute>
										</xsl:if>
											<td>
												<xsl:for-each select="n1:att_ref">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:waive_req">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<a>
													<xsl:choose>
														<xsl:when test="substring(string('attachment.doc'), 1, 1) = '#'">
															<xsl:attribute name="href">
																<xsl:value-of select="'attachment.doc'"/>
															</xsl:attribute>
														</xsl:when>
														<xsl:otherwise>
															<xsl:attribute name="href">
																<xsl:if test="substring(string('attachment.doc'), 2, 1) = ':'">
																	<xsl:text>file:///</xsl:text>
																</xsl:if>
																<xsl:value-of select="translate(string('attachment.doc'), '&#x5c;', '/')"/>
															</xsl:attribute>
														</xsl:otherwise>
													</xsl:choose>
													<xsl:for-each select="n1:doc_filename">
														<xsl:apply-templates/>
													</xsl:for-each>
												</a>
											</td>
											<td width="174">
												<xsl:for-each select="n1:att_title">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:doc_sec_lvl">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
										</tr>
									</xsl:for-each>
								</tbody>
							</table>
							<br/>
						</div>
						<hr style="color:gray; font-size:larger; line-height:20; "/>
						<div style="color:green; font-family:Arial; font-size:medium; font-style:italic; text-align:center; " class="title">
							<span>
								<xsl:text>Tariff Submission</xsl:text>
							</span>
						</div>
						<br/>
						<table style="border:black solid thin; font-family:Microsoft Sans Serif; font-size:x-small; " border="1">
							<thead>
								<tr style="background-color:#ffffe9; ">
									<td align="center" width="92">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Filing Option</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Record ID</xsl:text>
										</span>
									</td>
									<td align="center" width="288">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Record Title</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Record Number</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Sort Order</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Alternate Record Number</xsl:text>
										</span>
									</td>
									<td align="center" width="72">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Parent ID</xsl:text>
										</span>
									</td>
									<td align="center" width="123">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Effective Date</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Apply Order</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Raw Data</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Plain Text</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Change</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Assoc Filing</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Assoc Section ID</xsl:text>
										</span>
									</td>
									<td align="center">
										<span style="font-weight:bold; text-decoration:underline; ">
											<xsl:text>Assoc Option</xsl:text>
										</span>
									</td>
								</tr>
							</thead>
							<tbody>
								<xsl:for-each select="n1:Tariff_Content">
									<tr style="text-align:center; ">
										<xsl:if test="(position() mod 2 = 1)">
											<xsl:attribute name="bgcolor">#EEEEFF</xsl:attribute>
										</xsl:if>
										<td width="92">
											<xsl:for-each select="n1:filing_opt">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:record_id">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td width="288">
											<xsl:for-each select="n1:record_title">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:record_num">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:record_sort">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:alt_record_num">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td width="72">
											<xsl:for-each select="n1:record_parent">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td width="123">
											<xsl:for-each select="n1:eff_date">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:apply_order">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<a>
												<xsl:choose>
													<xsl:when test="substring(string('tariff.doc'), 1, 1) = '#'">
														<xsl:attribute name="href">
															<xsl:value-of select="'tariff.doc'"/>
														</xsl:attribute>
													</xsl:when>
													<xsl:otherwise>
														<xsl:attribute name="href">
															<xsl:if test="substring(string('tariff.doc'), 2, 1) = ':'">
																<xsl:text>file:///</xsl:text>
															</xsl:if>
															<xsl:value-of select="translate(string('tariff.doc'), '&#x5c;', '/')"/>
														</xsl:attribute>
													</xsl:otherwise>
												</xsl:choose>
												<span>
													<xsl:text>Click </xsl:text>
												</span>
											</a>
										</td>
										<td>
											<xsl:for-each select="n1:record_text">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:record_change">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:assoc_filing">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:assoc_record_id">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="n1:assoc_option">
												<xsl:apply-templates/>
											</xsl:for-each>
										</td>
									</tr>
								</xsl:for-each>
							</tbody>
						</table>
						<br/>
						<hr style="color:gray; font-size:larger; line-height:20; "/>
						<br/>
					</xsl:for-each>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
