Skip to content

Commit

Permalink
Update json-stylesheet.xsl
Browse files Browse the repository at this point in the history
Specify body text in fulltext mode
  • Loading branch information
emgeier authored Oct 21, 2024
1 parent 06ec589 commit ccd976a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json-stylesheet.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<xsl:template match="*:fields[@function = 'fullText']">
<xsl:param name="doc"/>
<xsl:variable name="field">
<xsl:apply-templates select="$doc/tei:body/descendant::text()"/>
<xsl:apply-templates select="$doc/descendant::text()"/>
</xsl:variable>
<xsl:if test="$field != ''">
<string key="{.}" xmlns="http://www.w3.org/2005/xpath-functions">
Expand Down Expand Up @@ -386,7 +386,7 @@
-->

<xsl:template match="t:TEI" mode="fullText">
<xsl:apply-templates select="descendant::text()"/>
<xsl:apply-templates select="descendant::tei:body/descendant::text()"/>
</xsl:template>
<xsl:template match="t:TEI" mode="title">
<xsl:choose>
Expand Down

0 comments on commit ccd976a

Please sign in to comment.