Skip to content
Permalink
Browse files

added credit for Ryan Baumann's change, plus stylesheet modifications…

… to support clean listing of multiple editors and better handling of whitespace. Also added XHTML strict doctype.
  • Loading branch information...
paregorios committed Dec 1, 2010
1 parent 052c32f commit a0104b7c004ec33eb41839c757d8f5c1fad09719
@@ -61,7 +61,8 @@
<xsl:include href="tpl-text.xsl"/>



<xsl:output encoding="UTF-8" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="no"/>

<!-- HTML FILE -->
<xsl:template match="/">
<html>
@@ -120,7 +121,7 @@

<h1><xsl:value-of select="//t:titleStmt/t:title"/></h1>
<p class="note">See <a href="http://horothesia.blogspot.com/search/label/mob-epigraphy">http://horothesia.blogspot.com/search/label/mob-epigraphy</a> for background on this project.</p>
<p>Edited by: <xsl:for-each select="//t:titleStmt/t:editor"><xsl:value-of select="."/><br/></xsl:for-each></p>
<p>Edited by:</p> <ul><xsl:for-each select="//t:titleStmt/t:editor"><xsl:element name="li"><xsl:if test="@xml:id"><xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute></xsl:if><xsl:value-of select="."/></xsl:element></xsl:for-each></ul>

<p>Provenance:</p>
<ul><xsl:for-each select="//t:msDesc/t:history/t:provenance//t:event">
@@ -1 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>flavia-faustina. Sepulchral Inscription of Flavia Faustina</title><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.2r1/build/reset/reset-min.css"/><link rel="stylesheet" type="text/css" media="screen, projection" href="../css/global.css"/></head><body><h1>Sepulchral Inscription of Flavia Faustina</h1><p class="note">See <a href="http://horothesia.blogspot.com/search/label/mob-epigraphy">http://horothesia.blogspot.com/search/label/mob-epigraphy</a> for background on this project.</p><p>Edited by: Tom Elliott<br/></p><p>Provenance:</p><ul><li>Observed at Rome in the lapidarium of the Basilica of Saint Paul Outside the Walls on 2010-11-10.<br/></li></ul> <div id="figure"> <h2>Photographs</h2> <div id="gfx-d0e112" class="graphic"><a href="http://lh6.ggpht.com/_tcSZVmUJxp0/TOR_pBqt-KI/AAAAAAAAAM4/-46QIqv3kSM/s720/2010-11-10%2007.48.17.jpg"><img src="http://lh6.ggpht.com/_tcSZVmUJxp0/TOR_pBqt-KI/AAAAAAAAAM4/-46QIqv3kSM/s720/2010-11-10%2007.48.17.jpg" style="width:200px" alt="Photo by Tom Elliott. 10 November 2010."/></a><p>Photo by Tom Elliott. 10 November 2010.</p></div> </div> <div id="edition" xml:lang="la"> <h2>Text</h2> <div class="textpart"><a id="al1"><!--0--></a>Flavia Faustina vixit an-<br id="al2"/>nos duos mensis octo ⌜<span title="lapis: I">e</span>⌝t<br id="al3"/>diis octo. </div> </div> <div id="translation"> <h2>Translation</h2> <p>Flavia Faustina lived two years, eight months and eight days.</p> </div> <div id="bibliography"> <h2>Published Editions</h2> <ul> <li>EDCS</li> <li>EDB</li> <li>ICVR II 5946</li> </ul> </div> <div id="license"> <p>This work is copyright by the editors and is licensed under a Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/). </p> </div></body></html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>flavia-faustina. Sepulchral Inscription of Flavia Faustina</title><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.2r1/build/reset/reset-min.css"/><link rel="stylesheet" type="text/css" media="screen, projection" href="../css/global.css"/></head><body><h1>Sepulchral Inscription of Flavia Faustina</h1><p class="note">See <a href="http://horothesia.blogspot.com/search/label/mob-epigraphy">http://horothesia.blogspot.com/search/label/mob-epigraphy</a> for background on this project.</p><p>Edited by:</p><ul><li id="RFB">Ryan Baumann</li><li id="TRE">Tom Elliott</li></ul><p>Provenance:</p><ul><li>Observed at Rome in the lapidarium of the Basilica of Saint Paul Outside the Walls on 2010-11-10.<br/></li></ul> <div id="figure"> <h2>Photographs</h2> <div id="gfx-d0e118" class="graphic"><a href="http://lh6.ggpht.com/_tcSZVmUJxp0/TOR_pBqt-KI/AAAAAAAAAM4/-46QIqv3kSM/s720/2010-11-10%2007.48.17.jpg"><img src="http://lh6.ggpht.com/_tcSZVmUJxp0/TOR_pBqt-KI/AAAAAAAAAM4/-46QIqv3kSM/s720/2010-11-10%2007.48.17.jpg" style="width:200px" alt="Photo by Tom Elliott. 10 November 2010."/></a><p>Photo by Tom Elliott. 10 November 2010.</p></div> </div> <div id="edition" xml:lang="la"> <h2>Text</h2> <div class="textpart"><a id="al1"><!--0--></a>Flavia Faustina vixit an-<br id="al2"/>nos duos mensis octo ⌜<span title="lapis: I">e</span>⌝t<br id="al3"/>diis octo.<br id="al4"/><i>chirho</i> <i>dolium</i> </div> </div> <div id="translation"> <h2>Translation</h2> <p>Flavia Faustina lived two years, eight months and eight days.</p> </div> <div id="bibliography"> <h2>Published Editions</h2> <ul> <li>EDCS</li> <li>EDB</li> <li>ICVR II 5946</li> </ul> </div> <div id="license"> <p>This work is copyright by the editors and is licensed under a Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/). </p> </div></body></html>
@@ -5,7 +5,8 @@
<fileDesc>
<titleStmt>
<title>Sepulchral Inscription of Flavia Faustina</title>
<editor>Tom Elliott</editor>
<editor xml:id="RFB">Ryan Baumann</editor>
<editor xml:id="TRE">Tom Elliott</editor>
</titleStmt>
<publicationStmt>
<authority>Tom Elliott</authority>
@@ -49,8 +50,9 @@
</langUsage>
</profileDesc>
<revisionDesc>
<change when="2010-11-23" who="TRE">initial encoding in EpiDoc from photograph</change>
<change when="2010-11-30" who="TRE">direct link to image URL, plus desired thumbnail size</change>
<change when="2010-11-23" who="#TRE">initial encoding in EpiDoc from photograph</change>
<change when="2010-11-30" who="#TRE">direct link to image URL, plus desired thumbnail size</change>
<change when="2010-12-01" who="#RFB">added glyphs for chi rho and dolium</change>
</revisionDesc>
</teiHeader>
<text>
@@ -3,11 +3,14 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xs h" version="2.0">

<xsl:output encoding="UTF-8" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>

<xd:doc xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet">
<xd:desc>
<xd:p><xd:b>Created on:</xd:b> Nov 30, 2010</xd:p>
<xd:p><xd:b>Author:</xd:b> tom</xd:p>
<xd:p></xd:p>
<xd:p><xd:b>Author:</xd:b> Tom Elliott</xd:p>
<xd:p>Used to convert output from hacked version of EpiDoc example P5 stylesheets for standalone web display in the context of the Mob Epigraphy project.</xd:p>
</xd:desc>
</xd:doc>
<xsl:template match="/">
@@ -26,6 +29,18 @@
</xsl:copy>
</xsl:template>
<xsl:template match="text()">
<xsl:text></xsl:text><xsl:value-of select="normalize-space(.)"/><xsl:text></xsl:text>
<xsl:variable name="raw" select="."/>
<xsl:variable name="cooked" select="normalize-space(.)"/>
<xsl:variable name="prefix">
<xsl:if test="substring($raw, 1, 1) = ' '"><xsl:text> </xsl:text></xsl:if>
</xsl:variable>
<xsl:variable name="postfix">
<xsl:if test="substring($raw, string-length($raw), 1) = ' '"><xsl:text> </xsl:text></xsl:if>
</xsl:variable>
<xsl:text></xsl:text><xsl:value-of select="$prefix"/><xsl:value-of select="$cooked"/><xsl:value-of select="$postfix"/><xsl:text></xsl:text>
<xsl:message>raw: "<xsl:value-of select="$raw"/>"</xsl:message>
<xsl:message>cooked: "<xsl:value-of select="$cooked"/>"</xsl:message>
<xsl:message>prefix: "<xsl:value-of select="$prefix"/>"</xsl:message>
<xsl:message>postfix: "<xsl:value-of select="$postfix"/>"</xsl:message>
</xsl:template>
</xsl:stylesheet>

0 comments on commit a0104b7

Please sign in to comment.
You can’t perform that action at this time.