Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
71 changes: 71 additions & 0 deletions breakOutFactoids.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
xmlns:sc="http://www.ascc.net/xml/schematron"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:srophe="https://srophe.app"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://syriaca.org/ns" version="3.0">

<xsl:output encoding="UTF-8" method="xml" indent="yes" xpath-default-namespace="http://www.tei-c.org/ns/1.0"/>

<xsl:template match="/">
<xsl:variable name="processingInstructions" select="processing-instruction()"/>
<xsl:variable name="folderName" select="tokenize(replace(//tei:publicationStmt/tei:idno[@type='URI'],'/tei',''),'/')[last()]"/>
<xsl:variable name="back" select="descendant::tei:back"/>
<!-- <ab type="factoid" -->
<xsl:for-each select="descendant::tei:ab[@type='factoid']">
<xsl:variable name="factoidURI" select="tei:idno[@type='URI']"/>
<xsl:variable name="factoidID" select="tokenize(tei:idno[@type='URI'],'/')[last()]"/>
<xsl:result-document href="data/factoids/{$folderName}/{$factoidID}.xml">
<xsl:sequence select="$processingInstructions"/>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:srophe="https://srophe.app">
<xsl:call-template name="teiHeader">
<xsl:with-param name="factoidURI" select="$factoidURI"/>
</xsl:call-template>
<text>
<body>
<xsl:copy-of select="."/>
</body>
<xsl:sequence select="$back"></xsl:sequence>
</text>
</TEI>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="teiHeader">
<xsl:param name="factoidURI"/>
<xsl:for-each select="//tei:teiHeader">
<teiHeader xmlns="http://www.tei-c.org/ns/1.0">
<xsl:for-each select="child::*">
<xsl:choose>
<xsl:when test="self::tei:fileDesc">
<fileDesc>
<xsl:for-each select="child::*">
<xsl:choose>
<xsl:when test="self::tei:publicationStmt">
<publicationStmt>
<xsl:for-each select="child::*">
<xsl:choose>
<xsl:when test="self::tei:idno">
<idno type="URI"><xsl:value-of select="$factoidURI"/></idno>
</xsl:when>
<xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</publicationStmt>
</xsl:when>
<xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fileDesc>
</xsl:when>
<xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</teiHeader>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>
Binary file modified build/spear-data-0.01.xar
Binary file not shown.
175 changes: 175 additions & 0 deletions data/factoids/10510/10510-1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/srophe/syriaca/master/documentation/SPEARschema/out/SPEAR.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://raw.githubusercontent.com/srophe/syriaca/master/documentation/SPEARschema/out/SPEAR.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:srophe="https://srophe.app"
xmlns:sc="http://www.ascc.net/xml/schematron"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://syriaca.org/ns">
<teiHeader>
<fileDesc>
<titleStmt>
<title level="a" type="main"> John of Ephesus, History of the Convent of John Urtaya, in The
Lives of the Eastern Saints </title>
<title type="sub">A SPEAR Prosopography</title>
<sponsor>Syriaca.org: The Syriac Reference Portal</sponsor>
<funder>The National Endowment for the Humanities</funder>
<funder>Texas A&amp;M University</funder>
<editor role="general"
ref="http://syriaca.org/documentation/editors.xml#dschwartz">Daniel L. Schwartz</editor>
<editor role="creator"
ref="http://syriaca.org/documentation/editors.xml#dschwartz">Daniel L. Schwartz</editor>
<editor role="creator"
ref="http://syriaca.org/documentation/editors.xml#ktorabi">Katayoun Torabi</editor>
<respStmt>
<resp>Data architecture, data entry, editing, proofreading, and revision
by</resp>
<name ref="http://syriaca.org/documentation/editors.xml#dschwartz">Daniel L.
Schwartz</name>
</respStmt>
<respStmt>
<resp>Text analysis and data encoding by</resp>
<name ref="http://syriaca.org/documentation/editors.xml#ktorabi">Katayoun Torabi</name>
</respStmt>
</titleStmt>
<editionStmt>
<edition n="1.0"/>
</editionStmt>
<publicationStmt>
<authority>Syriaca.org: The Syriac Reference Portal</authority>
<idno type="URI">https://spear-prosop.org/10510-1</idno>
<availability>
<licence target="http://creativecommons.org/licenses/by/3.0/">
<p>Distributed under a Creative Commons Attribution 3.0 Unported
License.</p>
</licence>
</availability>
<date>2020-01-03-05:00</date>
</publicationStmt>
<seriesStmt>
<title level="s">SPEAR: Syriac Persons, Events, and Relations</title>
<editor role="general"
ref="http://syriaca.org/documentation/editors.xml#dschwartz">Daniel L. Schwartz</editor>
<idno type="URI">http://syriaca.org/spear</idno>
</seriesStmt>
<seriesStmt>
<title level="m" xml:lang="en">The Lives of the Eastern Saints</title>
<title type="sub">A SPEAR Prosopography</title>
<editor role="general"
ref="http://syriaca.org/documentation/editors.xml#dschwartz">Daniel L. Schwartz</editor>
<idno type="URI">https://spear-prosop.org/lives-eastern-saints</idno>
<biblScope unit="volume">
<title level="s">SPEAR: Syriac Persons, Events, and Relations</title>
<idno type="URI">http://syriaca.org/spear</idno>
</biblScope>
</seriesStmt>
<sourceDesc>
<listBibl>
<head>Sources for the Data in this Born Digital Prosopography</head>
<bibl type="primary">
<title>Lives of the Eastern Saints
III</title>
<title>History of the Convent of John
Urtaya</title>
<author>
<persName ref="http://syriaca.org/person/74">John of Ephesus</persName>
</author>
<editor>
<persName ref="http://syriaca.org/person/403">E. W.
Brooks</persName>
</editor>
<ptr target="http://syriaca.org/bibl/2033"/>
</bibl>
<bibl type="primary">
<title>To Bishop Constantine of
Seleucia</title>
<author>
<persName ref="http://syriaca.org/person/74">John of Ephesus</persName>
</author>
<ptr target="http://syriaca.org/work/10510"/>
</bibl>
</listBibl>
<listRelation>
<relation type="part"
active="http://syriaca.org/work/10510"
name="dcterms:isPartOf"
passive="http://syriaca.org/work/9501"/>
</listRelation>
</sourceDesc>
</fileDesc>
<encodingDesc>
<editorialDecl>
<p><!-- POINT USERS TO WIKI DOCUMENTATION WHEN COMPLETED. --></p>
</editorialDecl>
<classDecl>
<taxonomy>
<category xml:id="calculated">
<catDesc> Used to denote a date calculated by the editor from a regnal year
or some other dating method given in the text. </catDesc>
</category>
</taxonomy>
</classDecl>
</encodingDesc>
<profileDesc/>
<revisionDesc status="draft">
<change who="http://syriaca.org/documentation/editors.xml#srophe-util"
when="2020-01-03-05:00">CHANGED: Add a human readable version or the tei:relation element in a tei:desc.</change>
<change status="draft"/>
</revisionDesc>
</teiHeader>
<text>
<body>
<ab type="factoid"
subtype="nameVariant"
xml:id="factoid-1"
resp="#ktorabi">
<idno type="URI">https://spear-prosop.org/10510-1</idno>
<listPerson>
<person>
<persName ref="http://syriaca.org/person/3218"> John Urtaya, Archimandrite
of the<placeName ref="http://syriaca.org/place/399">Convent of John
Urtaya</placeName>. </persName>
</person>
</listPerson>
<bibl type="primary">
<ptr target="http://syriaca.org/work/10510"/>
<citedRange unit="p">552</citedRange>
</bibl>
<bibl type="primary">
<ptr target="http://syriaca.org/bibl/2033"/>
<citedRange unit="p">206</citedRange>
</bibl>
</ab>
</body>
<back>
<listBibl>
<head>Works Cited</head>
<bibl type="primary" xml:id="bibl10510-1">
<title>Lives of the Eastern Saints
III</title>
<title>History of the Convent of John
Urtaya</title>
<author>
<persName ref="http://syriaca.org/person/74">John
of Ephesus</persName>
</author>
<editor>
<persName ref="http://syriaca.org/person/403">E. W. Brooks</persName>
</editor>
<ptr target="http://syriaca.org/bibl/2033"/>
</bibl>
<bibl type="primary" xml:id="bibl10510-2">
<title>To Bishop Constantine of
Seleucia</title>
<author>
<persName ref="http://syriaca.org/person/74">John of
Ephesus</persName>
</author>
<ptr target="http://syriaca.org/work/10510"/>
</bibl>
</listBibl>
</back>
</text>
</TEI>
Loading