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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/xproc/dracor-lib.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<p:variable name="dracor-id" select="/data/@dracor-id" href="{$data-file-path-uri}" />

<!-- PIPELINE BODY -->
<p:add-attribute match="*[@xml:lang['la']]" attribute-name="xml:lang" attribute-value="lat" />

<p:add-attribute match="*[@xml:lang['la']]" attribute-name="xml:lang" attribute-value="la" />
<p:delete match="tei:div[@type='editorial']" />
<p:delete match="tei:fileDesc/tei:notesStmt" />
<p:delete match="tei:sourceDesc/tei:listWit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<xsl:variable name="multiple-items-separator-regex">;\s</xsl:variable>
<xsl:variable name="year-regex">^\d{4}$</xsl:variable>
<xsl:variable name="not-before-after-regex">^not\sbefore\s(\d{4}),\snot\safter\s(\d{4})$</xsl:variable>
<xsl:variable name="author-persName-default-lang">lat</xsl:variable>
<xsl:variable name="author-persName-default-lang">la</xsl:variable>

<xsl:variable name="rows" as="map(xs:string, xs:integer)">
<xsl:map>
Expand Down Expand Up @@ -165,12 +165,9 @@
<xsl:with-param name="row-key" select="'publisher'" /> <!-- DraCor -->
</xsl:apply-templates>
<availability>
<licence>
<xsl:apply-templates select="." mode="element">
<xsl:with-param name="row-key" select="'licence-of-the-tei-file'" />
</xsl:apply-templates>
</licence>

<xsl:apply-templates select="." mode="element">
<xsl:with-param name="row-key" select="'licence-of-the-tei-file'" />
</xsl:apply-templates>
<xsl:if test="not(xpef:is-empty($copyright-of-the-source-text-edition))">
<p xmlns="http://www.tei-c.org/ns/1.0">
<xsl:text>Copyright of the text edition (c) </xsl:text>
Expand Down Expand Up @@ -311,7 +308,7 @@
</xsl:when>
<xsl:when test="xpef:is-empty($cell)" />
<xsl:when test="$row-key = 'work-title'">
<title xmlns="http://www.tei-c.org/ns/1.0" type="main">
<title xmlns="http://www.tei-c.org/ns/1.0">
<xsl:apply-templates select="$cell" mode="tei" />
</title>
</xsl:when>
Expand Down Expand Up @@ -468,9 +465,10 @@
</xsl:when>
<xsl:when test="$row-key = 'licence-of-the-tei-file'">
<!-- hardcoded -->
<ab xmlns="http://www.tei-c.org/ns/1.0"><xsl:value-of select="$licence-of-tei-file"/></ab>
<!-- hardcoded -->
<ref xmlns="http://www.tei-c.org/ns/1.0" target="{$licence-of-tei-file-url}">Licence</ref>
<licence xmlns="http://www.tei-c.org/ns/1.0">
<xsl:attribute name="target" select="$licence-of-tei-file-url"/>
<xsl:value-of select="$licence-of-tei-file"/>
</licence>
</xsl:when>
<xsl:when test="$row-key = 'copyright-of-the-source-text-edition'">
<xsl:apply-templates select="$cell" mode="tei" />
Expand Down
2 changes: 1 addition & 1 deletion src/xslt/docx2dracor/tei-processing/dracor-xml-to-tei.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<xsl:import href="_dracor-xml-to-tei-text.xsl"/>

<xsl:template match="/">
<TEI xml:id="neolatXXXXXX" xmlns="http://www.tei-c.org/ns/1.0" xml:lang="lat">
<TEI xmlns="http://www.tei-c.org/ns/1.0" type="dracor" xml:id="neolatXXXXXX" xml:lang="la">
<xsl:apply-templates select="/body/table[1]" />
<xsl:apply-templates select="/body" />
</TEI>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<xsl:sort select="." />
<xsl:variable name="id" select="."/>
<xsl:variable name="speaker" select="key('speeches', $id, $text)[1]/tei:speaker"/>
<person xml:id="{substring-after($id, '#')}" sex="" role="">
<person xml:id="{substring-after($id, '#')}">
<persName><xsl:value-of select="$speaker"/></persName>
</person>
</xsl:for-each>
Expand Down