<?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://ferc.gov/etariff.xsd" 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"/>
	<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<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>
					<xsl:for-each select="n1:document">
						<br/>
						<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_data">
							<br/>
							<br/>
							<span style="font-size:xx-small; text-align:right; ">
								<xsl:text>Schema Version: </xsl:text>
							</span>
							<xsl:for-each select="n1:schema_version">
								<span style="font-size:xx-small; ">
									<xsl:apply-templates/>
								</span>
							</xsl:for-each>
							<br/>
							<table style="background-color:#ffffe9; border:solid black thin; vertical-align:middle; width:600; " align="center" border="1" width="100%">
								<tbody style="vertical-align:middle; ">
									<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">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</xsl:for-each>
										</td>
										<td style="border:none; font-family:Garamond; width:4; " width="84">
											<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">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</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>Tariff ID:</xsl:text>
											</span>
										</td>
										<td style="border:none; font-family:Garamond; " width="153">
											<xsl:for-each select="n1:tariff_id">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</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">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</xsl:for-each>
										</td>
										<td style="border:none; font-family:Garamond; width:4; " width="84">
											<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:associated_filing_id">
												<xsl:apply-templates/>
											</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:suspend_motion">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</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">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</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:tariff_title">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</xsl:for-each>
										</td>
									</tr>
									<tr style="border:none; ">
										<td style="border:none; font-family:Garamond; " width="65">
											<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
												<xsl:text>Payment</xsl:text>
											</span>
											<br/>
											<span style="font-family:Microsoft Sans Serif; font-size:x-small; ">
												<xsl:text>Confirmation:</xsl:text>
											</span>
										</td>
										<td style="border:none; font-family:Garamond; " width="531">
											<xsl:for-each select="n1:pay_confirm_code">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</xsl:for-each>
										</td>
										<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="84"/>
										<td style="border:none; font-family:Garamond; font-size:small; " width="105">
											<span style="font-family:MS Sans Serif; font-size:x-small; ">
												<xsl:text>Validation Email:</xsl:text>
											</span>
										</td>
										<td style="border:none; font-family:Garamond; font-size:small; " colspan="2">
											<xsl:for-each select="n1:validation_email">
												<span style="background-color:#d2d2d2; ">
													<xsl:apply-templates/>
												</span>
											</xsl:for-each>
										</td>
									</tr>
									<tr style="border:none; ">
										<td style="border:none; font-family:Garamond; font-size:small; "/>
										<td style="border:none; font-family:Garamond; font-size:small; "/>
										<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="84"/>
										<td style="border:none; font-family:Garamond; font-size:small; " colspan="3"/>
									</tr>
									<tr style="border:none; ">
										<td style="border:none; font-family:Garamond; font-size:small; "/>
										<td style="border:none; font-family:Garamond; font-size:small; "/>
										<td style="border:none; font-family:Garamond; font-size:small; width:4; " width="84"/>
										<td style="border:none; font-family:Garamond; font-size:small; " colspan="3"/>
									</tr>
									<tr>
										<td style="border:none; font-family:Garamond; font-size:small; " height="20"/>
										<td style="border:none; font-family:Garamond; font-size:small; " height="20"/>
										<td style="border:none; font-family:Garamond; font-size:small; width:4; " height="20" width="84"/>
										<td style="border:none; font-family:Garamond; font-size:small; " colspan="3" height="20"/>
									</tr>
								</tbody>
							</table>
							<br/>
							<br/>
							<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>Content Type</xsl:text>
												</span>
											</td>
											<td align="center" width="174">
												<span style="font-weight:bold; text-decoration:underline; ">
													<xsl:text>Description</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_data">
											<tr style="text-align:center; ">
												<td/>
												<td/>
												<td/>
												<td width="174"/>
												<td width="174"/>
												<td/>
											</tr>
											<tr style="text-align:center; ">
												<td>
													<xsl:for-each select="n1:att_ref_code">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td>
													<xsl:for-each select="n1:att_waiver_request">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td>
													<a>
														<xsl:choose>
															<xsl:when test="substring(string(&apos;attachment.doc&apos;), 1, 1) = '#'">
																<xsl:attribute name="href">
																	<xsl:value-of select="&apos;attachment.doc&apos;"/>
																</xsl:attribute>
															</xsl:when>
															<xsl:otherwise>
																<xsl:attribute name="href">
																	<xsl:if test="substring(string(&apos;attachment.doc&apos;), 2, 1) = ':'">
																		<xsl:text>file:///</xsl:text>
																	</xsl:if>
																	<xsl:value-of select="translate(string(&apos;attachment.doc&apos;), '&#x5c;', '/')"/>
																</xsl:attribute>
															</xsl:otherwise>
														</xsl:choose>
														<xsl:for-each select="n1:att_filename">
															<xsl:apply-templates/>
														</xsl:for-each>
													</a>
												</td>
												<td width="174">
													<xsl:for-each select="n1:att_content_type_code">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td width="174">
													<xsl:for-each select="n1:att_desc">
														<xsl:apply-templates/>
													</xsl:for-each>
												</td>
												<td>
													<xsl:for-each select="n1:att_security_level">
														<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 </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Option </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Code</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>Title</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Content Description</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Collation Order</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Version Number</xsl:text>
											</span>
										</td>
										<td align="center" width="72">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Narrative Name</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>Proposed Effective</xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text> Date</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Priority</xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text> 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>Content Type</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Plain </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Text</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Change</xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text> Type</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Assoc Filing </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>ID</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Assoc </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Book Item </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>ID</xsl:text>
											</span>
										</td>
										<td align="center">
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Assoc </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Option </xsl:text>
											</span>
											<br/>
											<span style="font-weight:bold; text-decoration:underline; ">
												<xsl:text>Code</xsl:text>
											</span>
										</td>
									</tr>
								</thead>
								<tbody>
									<xsl:for-each select="n1:record_data">
										<tr style="text-align:center; ">
											<td width="92">
												<xsl:for-each select="n1:option_code">
													<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_content_desc">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:collation_value">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:record_version_num">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td width="72">
												<xsl:for-each select="n1:record_narrative_name">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td width="72">
												<xsl:for-each select="n1:record_parent_id">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td width="123">
												<xsl:for-each select="n1:proposed_effective_date">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:priority_order">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<a>
													<xsl:choose>
														<xsl:when test="substring(string(&apos;tariff.doc&apos;), 1, 1) = '#'">
															<xsl:attribute name="href">
																<xsl:value-of select="&apos;tariff.doc&apos;"/>
															</xsl:attribute>
														</xsl:when>
														<xsl:otherwise>
															<xsl:attribute name="href">
																<xsl:if test="substring(string(&apos;tariff.doc&apos;), 2, 1) = ':'">
																	<xsl:text>file:///</xsl:text>
																</xsl:if>
																<xsl:value-of select="translate(string(&apos;tariff.doc&apos;), '&#x5c;', '/')"/>
															</xsl:attribute>
														</xsl:otherwise>
													</xsl:choose>
													<span>
														<xsl:text>Click </xsl:text>
													</span>
												</a>
											</td>
											<td>
												<xsl:for-each select="n1:record_content_type_code">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:record_plain_text">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:record_change_type">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:associated_filing_id">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:associated_record_id">
													<xsl:apply-templates/>
												</xsl:for-each>
											</td>
											<td>
												<xsl:for-each select="n1:associated_option_code">
													<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/>
					</xsl:for-each>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
