Skip to content

Commit

Permalink
added span class inlinequote handling in xsl fixtures closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Aug 22, 2022
1 parent 044198f commit 3b1a30a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions freud_api_crawler/fixtures/make_tei.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,28 @@
<hi><xsl:attribute name="rendition"><xsl:value-of select="concat('#', ./@class)"/></xsl:attribute><xsl:apply-templates/></hi>
</xsl:template>
<xsl:template match="tei:span[@class='footnote-index']">
<hi><xsl:attribute name="rendition"><xsl:value-of select="concat('#', ./@class)"/></xsl:attribute><xsl:value-of select="."/></hi>
<hi><xsl:attribute name="rendition"><xsl:value-of select="concat('#', ./@class)"/></xsl:attribute><xsl:apply-templates/></hi>
</xsl:template>
<xsl:template match="tei:span[@class='inlinequote']">
<q><xsl:attribute name="type">inlinequote</xsl:attribute><xsl:apply-templates/></q>
</xsl:template>
<xsl:template match="tei:span[@class='blockquote']">
<q><xsl:attribute name="type">blockquote</xsl:attribute><xsl:apply-templates/></q>
</xsl:template>
<xsl:template match="tei:em">
<hi><xsl:attribute name="rendition">#em</xsl:attribute><xsl:value-of select="."/></hi>
<hi><xsl:attribute name="rendition">#em</xsl:attribute><xsl:apply-templates/></hi>
</xsl:template>
<xsl:template match="tei:sup">
<xsl:value-of select="."/>
<hi><xsl:attribute name="rendition">#sub</xsl:attribute><xsl:apply-templates/></hi>
</xsl:template>


<!--
####################
other things
####################
-->
<xsl:template match="tei:blockquote">
<q><xsl:apply-templates/></q>
<q><xsl:attribute name="type">blockquote</xsl:attribute><xsl:apply-templates/></q>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 3b1a30a

Please sign in to comment.