<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:template match="/">
		<!--
December 27, 2007

Show combination Vaughan, Modern spelling - Vaughan, Middle English

Current value of <h1> heading is "Prologue" - must change for other sections of poem.
-->
	
<html>
<head>
	<title>Vaughan Modern - Vaughan Middle English</title>
	
	<!--
	<script type="text/javascript" src="piersJavaScript.js"></script>
	-->
	<link rel="stylesheet" type="text/css" href="reset-fonts-grids.css" />
	<link rel="stylesheet" href="piersStyle.css" type="text/css" />
	<link rel="stylesheet" href="piersStyleDefault.css" type="text/css" title="default" />

</head>

<body>
<!-- the id on the containing div determines the page width. -->
<!-- #doc = 750px; #doc2 = 950px; #doc3 = 100%; #doc4 = 974px -->
<div id="doc">					
	<div id="hd">
		<table>
			<tr>
			<td><h1 class="scriptText">Prologue</h1></td>
			</tr>
			<tr>
			<td>
			<p style="margin-top: 30px"><span style="margin-left: 100px; font-size:smaller; font-style:italic">Vaughan modern spelling</span>
			<span style="margin-left: 400px; font-size:smaller; font-style:italic">Vaughan Middle English</span></p>
			</td>
			</tr>
		</table>
	</div>
	<div id="bd">

		<!-- Use Standard Nesting Grids and Special Nesting Grids to subdivid regions of your layout. -->
		<!-- tells the two children to split space evenly-->
		<div class="yui-g">
	
			<!-- the first child of a Grid needs the "first" class -->
			<div class="yui-u first">
				<div class="poem">			

				<!-- Vaughan  Modern Spelling -->
								
	

										<!--  //////// Basic loop: Each line of poetry ////  -->
										
										<div class="line">
										

								<div style="height: 20px;">
									<span style="color: #FFFF99">Piers Plowman</span>
								</div>



										<xsl:for-each select="section/line">

											
											<!-- Establish the line number -->
												<xsl:variable name="thisLineNumber">
													<xsl:value-of select="position()"></xsl:value-of>
												</xsl:variable>	





											
													<!-- ////////// Line numbers ////////// -->
													<div class="nums">
														<xsl:choose>
													
													
													<xsl:when test=" (position() mod 5) = 0 ">
														<span style="font-size: smaller">
															<xsl:number value="position()" format="1  "/>
														</span>
													</xsl:when>
													
													<xsl:otherwise>
															<span style="color:#FFFFCC">PP</span>
														</xsl:otherwise>
													</xsl:choose>																									
												</div>




												<!-- Words in a line -->
												<div class="words">


												
													<!-- ///////// Each word in line //////////////// -->
													<xsl:for-each select="unit">
														<!-- ///// Calculate the glossterm /// -->
														<xsl:variable name="thisGlossTerm">
															<xsl:choose>

																<xsl:when test=" @glossterm= 'null' and @modernSpelling != 'null' ">
																	<xsl:value-of select="@modernSpelling"></xsl:value-of>
																</xsl:when>

																<xsl:when test="@glossterm != 'null'">
																	<xsl:value-of select="@glossterm"></xsl:value-of>
																</xsl:when>

																<xsl:otherwise>
																	<xsl:value-of select=" 'null' "></xsl:value-of>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:variable>




														
														<!-- //////////////////////////////// Glossterm //////////////////////////////////////////////////////////// -->
														<xsl:choose>
															<xsl:when test="$thisGlossTerm != 'null' ">
																<!--  ////////////////////////////// There is a glossterm ///////////////////////////////////// -->
																<span class="glosser">
																	<xsl:attribute name="title">
																		<xsl:value-of select="$thisGlossTerm"/>
																	</xsl:attribute>
																	<!-- //////////////////////////////  New Reading - Modern English  //////////////////////// -->
																	<xsl:choose>
																		<xsl:when test="@oldReading = 'false' ">
																			<xsl:choose>
																				<xsl:when test="@modernSpelling != 'null' ">
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@modernSpelling"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@modernSpelling"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- /////// Space ///////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:when>
																				<xsl:otherwise>
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@value"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@value"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- ////// Space ///////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:when test="@oldReading = 'null' ">
																			<xsl:choose>
																				<xsl:when test="@modernSpelling != 'null' ">
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@modernSpelling"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@modernSpelling"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- ///// Space /////////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:when>
																				<xsl:otherwise>
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@value"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@value"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- /////// Space /////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																	</xsl:choose>
																</span>
															</xsl:when>
															<xsl:otherwise>
																<!-- //////////////////////////////////////// No glossterm  ////////////////////////////////////////////////////////////// -->
																<!-- //////////////////////////////  New Reading - Modern spelling //////////////////////// -->
																<xsl:choose>
																	<xsl:when test="@oldReading = 'false' ">
																		<xsl:choose>
																			<xsl:when test="@modernSpelling != 'null' ">
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@modernSpelling"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@modernSpelling"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- //////// Space ///////////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:when>
																			<xsl:otherwise>
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@value"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@value"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- /////// Space ///////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:when>
																	<xsl:when test="@oldReading = 'null' ">
																		<xsl:choose>
																			<xsl:when test="@modernSpelling != 'null' ">
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@modernSpelling"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@modernSpelling"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- ////// Space ///////////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:when>
																			<xsl:otherwise>
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@value"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@value"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- /////Space /////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:when>
																</xsl:choose>
															</xsl:otherwise>
														</xsl:choose>
														<!-- //////////////////////////////////////  Bottom of glossterm ////////////////////////////////////////////// -->
													</xsl:for-each>

													<!-- Bottom of div class="words" -->
													</div>
													<br clear="all" />


																																																
													

													<!-- ////////////////////////////////////  Bottom of each word  ////////////////////////////// -->
											
											
											<!-- ///////////////////////////////// Bottom of basic loop //////////////////////////////////////// -->
										</xsl:for-each>

								<div style="height: 20px;">
									<span style="color: #FFFF99">Piers Plowman</span>
								</div>
								
										<!-- /// Bottom of div class="line" ///// -->
										</div>



							
	
								
							
				<!-- Bottom of Vaughan Modern Spelling -->
							
				</div>
			</div>	
	
			<div class="yui-u">
				<div class="poem">							
	
				<!-- Vaughan Middle English -->





										<!--  //////// Basic loop: Each line of poetry ////  -->
										<div class="line">


								<div style="height: 20px;">
									<span style="color: #FFFF99">Piers Plowman</span>
								</div>


										<xsl:for-each select="section/line">
											
											<!-- Establish the line number -->
												<xsl:variable name="thisLineNumber">
													<xsl:value-of select="position()"></xsl:value-of>
												</xsl:variable>	
											
											
											
											
											
											
											
													<!-- ////////// Line numbers ////////// -->

													<div class="nums">
													<xsl:choose>
													<xsl:when test=" (position() mod 5) = 0 ">
														<span style="font-size: smaller">
															<xsl:number value="position()" format="1  "/>
														</span>
													</xsl:when>												
													<xsl:otherwise>
															<span style="color:#FFFFCC">PP</span>
														</xsl:otherwise>
													</xsl:choose>																									
												</div>

												


													<!-- Words in a line -->
													<div class="words">

												
													<!-- ///////// Each word in line //////////////// -->
													<xsl:for-each select="unit">


														<!-- ///// Calculate the glossterm /// -->
														<xsl:variable name="thisGlossTerm">
															<xsl:choose>

																<xsl:when test=" @glossterm= 'null' and @modernSpelling != 'null' ">
																	<xsl:value-of select="@modernSpelling"></xsl:value-of>
																</xsl:when>

																<xsl:when test="@glossterm != 'null'">
																	<xsl:value-of select="@glossterm"></xsl:value-of>
																</xsl:when>

																<xsl:otherwise>
																	<xsl:value-of select=" 'null' "></xsl:value-of>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:variable>





														
														<!-- //////////////////////////////// Glossterm //////////////////////////////////////////////////////////// -->
														<xsl:choose>
															<xsl:when test="$thisGlossTerm != 'null' ">
																<!--  ////////////////////////////// There is a glossterm ///////////////////////////////////// -->
																<span class="glosser">
																	<xsl:attribute name="title">
																		<xsl:value-of select="$thisGlossTerm"/>
																	</xsl:attribute>
																	<!-- //////////////////////////////  New Reading - Middle English  //////////////////////// -->
																	<xsl:choose>
																		<xsl:when test="@oldReading = 'false' ">
																			<xsl:choose>
																				<xsl:when test="@midEngSpelling != 'null' ">
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@midEngSpelling"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:when test="@midEngSpelling = 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@midEngSpelling"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- /////// Space ///////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:when>
																				<xsl:otherwise>
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@value"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@value"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- ////// Space ///////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:when test="@oldReading = 'null' ">
																			<xsl:choose>
																				<xsl:when test="@midEngSpelling != 'null' ">
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@midEngSpelling"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:when test="@midEngSpelling = 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@midEngSpelling"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- ///// Space /////////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:when>
																				<xsl:otherwise>
																					<!-- /// Special printing styles ////////// -->
																					<xsl:choose>
																						<xsl:when test="@special= 'italic'  ">
																							<span class="italic">
																								<xsl:value-of select="@value"/>
																							</span>
																						</xsl:when>
																						<xsl:when test="@value= 'Xmt' ">
																							<xsl:text> </xsl:text>
																						</xsl:when>
																						<xsl:otherwise>
																							<xsl:value-of select="@value"/>
																						</xsl:otherwise>
																					</xsl:choose>
																					<!-- /////// Space /////////////  -->
																					<xsl:if test="@space = 'yes' ">
																						<xsl:text> </xsl:text>
																					</xsl:if>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																	</xsl:choose>
																</span>
															</xsl:when>
															<xsl:otherwise>
																<!-- //////////////////////////////////////// No glossterm  ////////////////////////////////////////////////////////////// -->
																<!-- //////////////////////////////  New Reading - Middle English //////////////////////// -->
																<xsl:choose>
																	<xsl:when test="@oldReading = 'false' ">
																		<xsl:choose>
																			<xsl:when test="@midEngSpelling != 'null' ">
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@midEngSpelling"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="@midEngSpelling = 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@midEngSpelling"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- //////// Space ///////////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:when>
																			<xsl:otherwise>
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@value"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@value"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- /////// Space ///////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:when>
																	<xsl:when test="@oldReading = 'null' ">
																		<xsl:choose>
																			<xsl:when test="@midEngSpelling != 'null' ">
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@midEngSpelling"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="@midEngSpelling = 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@midEngSpelling"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- ////// Space ///////////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:when>
																			<xsl:otherwise>
																				<!-- /// Special printing styles ////////// -->
																				<xsl:choose>
																					<xsl:when test="@special= 'italic'  ">
																						<span class="italic">
																							<xsl:value-of select="@value"/>
																						</span>
																					</xsl:when>
																					<xsl:when test="@value= 'Xmt' ">
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:value-of select="@value"/>
																					</xsl:otherwise>
																				</xsl:choose>
																				<!-- /////Space /////////  -->
																				<xsl:if test="@space = 'yes' ">
																					<xsl:text> </xsl:text>
																				</xsl:if>
																			</xsl:otherwise>
																		</xsl:choose>
																	</xsl:when>
																</xsl:choose>
															</xsl:otherwise>
														</xsl:choose>
														<!-- //////////////////////////////////////  Bottom of glossterm ////////////////////////////////////////////// -->
													</xsl:for-each>

													<!-- Bottom of div class="words" -->
													</div>
													<br clear="all" />


														
													<!-- ////////////////////////////////////  Bottom of each word  ////////////////////////////// -->
											
											<!-- ///////////////////////////////// Bottom of basic loop //////////////////////////////////////// -->
										</xsl:for-each>


								<div style="height: 20px;">
									<span style="color: #FFFF99">Piers Plowman</span>
								</div>
								<!-- bottom of main window -->

										<!-- // Bottom of div class="line"  /// -->
										</div>
								


								
							
	




											

								
	




				<!-- Bottom of Vaughan Middle English -->
				</div>
			</div>
	
		</div>
	
	</div>
	<div id="ft">
		<p>Piers Plowman</p>
	</div>
</div>
</body>
</html>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="prologue.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="no" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="false"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/><advancedProp name="iErrorHandling" value="fatal"/></scenario></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->