<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cgi="http://semanticbible.org/ns/2004/cgi#">	<xsl:output method="html" version="1.0" encoding="ISO-8859-1" indent="yes"/>	<xsl:template match="/">		<!-- the selects get rather long, this makes them more usable -->		<xsl:variable name="pid" select="//rdf:RDF/cgi:Pericope/@rdf:about"/>		<xsl:variable name="hasTitle" select="//rdf:RDF/cgi:Pericope/@cgi:hasTitle"/>		<xsl:variable name="pdesc" select="concat($pid, ': ', $hasTitle)"/>		<xsl:variable name="nextPericope" select="//rdf:RDF/cgi:Pericope/cgi:nextPericope/@rdf:resource"/>		<xsl:variable name="nextTitle" select="//rdf:RDF/cgi:Pericope/cgi:nextPericope/@cgi:hasTitle"/>		<xsl:variable name="previousPericope" select="//rdf:RDF/cgi:Pericope/cgi:previousPericope/@rdf:resource"/>		<xsl:variable name="previousTitle" select="//rdf:RDF/cgi:Pericope/cgi:previousPericope/@cgi:hasTitle"/>		<html>			<head>				<title>					<xsl:value-of select="$pdesc"/>				</title>				<style type="text/css">	body { 		margin: 0px 0px 0px 0px; 		}	tr { vertical-align: top; }	td { padding-left: 6px; padding-right: 6px; }	.source_seq { color: grey; font-size: smaller}	.leftspan { float:left; }	.rightspan { float:right; }	#sourcelink { 		font-size: 75%;		background-color: #dddddd;		}	#pericope_sequence {		margin: 10px 10px 10px 10px;	}	</style>			</head>			<body>				<h2>					<xsl:value-of select="$pdesc"/>				</h2>				<div id="pericope_sequence">					<span class="leftspan">						<xsl:call-template name="prevlink">							<xsl:with-param name="pericope" select="//rdf:RDF/cgi:Pericope/cgi:previousPericope"/>						</xsl:call-template>					</span>					<span class="rightspan">						<xsl:call-template name="nextlink">							<xsl:with-param name="pericope" select="//rdf:RDF/cgi:Pericope/cgi:nextPericope"/>						</xsl:call-template>					</span>				</div>				<br/>				<div id="pericope_sequence">					<span class="leftspan">						<xsl:value-of select="$previousTitle"/>					</span>					<span class="rightspan">						<xsl:value-of select="$nextTitle"/>					</span>				</div>				<br/>				<table width="95%" align="center" border="1">					<tbody>						<!-- references in the head of the table-->						<tr>							<xsl:for-each select="//rdf:RDF/cgi:Pericope/cgi:hasSource/cgi:PericopeSource">								<th>									<xsl:value-of select="@cgi:hasReference"/>								</th>							</xsl:for-each>						</tr>						<!-- the verses -->						<tr>							<xsl:for-each select="//rdf:RDF/cgi:Pericope/cgi:hasSource/cgi:PericopeSource">								<td>									<xsl:value-of select="cgi:hasContent"/>								</td>							</xsl:for-each>						</tr>						<!-- source navigation -->						<tr>							<xsl:for-each select="//rdf:RDF/cgi:Pericope/cgi:hasSource/cgi:PericopeSource">								<td>									<table width="100%" id="sourcelink">										<tbody>											<tr>												<td align="left">													<xsl:call-template name="prevlink">														<xsl:with-param name="pericope" select="cgi:previousPericopeForSource"/>													</xsl:call-template>												</td>												<td align="right">													<xsl:call-template name="nextlink">														<xsl:with-param name="pericope" select="cgi:nextPericopeForSource"/>													</xsl:call-template>												</td>											</tr>											<tr>												<td align="left">													<xsl:value-of select="cgi:previousPericopeForSource/@cgi:hasTitle"/>												</td>												<td align="right">													<xsl:value-of select="cgi:nextPericopeForSource/@cgi:hasTitle"/>												</td>											</tr>										</tbody>									</table>								</td>							</xsl:for-each>						</tr>					</tbody>				</table>				<!-- The version should be in the RDF file-->				<p>This resource is built from the <a href="http://www.semanticbible.org/cgi/cgi-overview.html">Composite Gospel Index</a>, version <xsl:value-of select="//rdf:RDF/cgi:Pericope/dc:version"/>, and published by <xsl:value-of select="//rdf:RDF/cgi:Pericope/dc:publisher"/>, <xsl:value-of select="//rdf:RDF/cgi:Pericope/dc:created"/>. <xsl:value-of select="//rdf:RDF/cgi:Pericope/dc:rights"/>				</p>				<p>You can view the entire Composite Gospel Index in <a href="http://www.semanticbible.org/cgi/2004/11/IndexForCGI.html">HTML</a> or <a href="http://www.semanticbible.org/cgi/2004/11/compositeGospel.1.2.rdf">RDF</a></p>			</body>		</html>	</xsl:template>	<xsl:template name="prevlink">		<xsl:param name="pericope"/>		<xsl:choose>			<xsl:when test="$pericope">				<xsl:variable name="pid" select="$pericope/@rdf:resource"/>				<xsl:variable name="href" select="concat($pid, '.xml')"/>				<a href="{$href}" title="Previous">					<img src="icon_sortleft.gif" border="0" alt="Previous"/>					<xsl:value-of select="$pid"/>				</a>			</xsl:when>			<xsl:otherwise>[]</xsl:otherwise>		</xsl:choose>	</xsl:template>	<xsl:template name="nextlink">		<xsl:param name="pericope"/>		<xsl:choose>			<xsl:when test="$pericope">				<xsl:variable name="pid" select="$pericope/@rdf:resource"/>				<xsl:variable name="href" select="concat($pid, '.xml')"/>				<a href="{$href}" title="Next">					<xsl:value-of select="$pid"/>					<img src="icon_sortright.gif" border="0" alt="Next"/>				</a>			</xsl:when>			<xsl:otherwise>[]</xsl:otherwise>		</xsl:choose>	</xsl:template></xsl:stylesheet>
