Skip to content

Commit

Permalink
fix(at): event lookup can now deal properly with multiple ids in ptr/@…
Browse files Browse the repository at this point in the history
…target, e.g. 'book2:ev11 book2:60'
  • Loading branch information
geoffroy-noel-ddh committed Aug 15, 2024
1 parent ce51e97 commit b219ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions responses/at-tei-to-tei.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<xsl:key name="places" match="//tei:place" use="concat('place:', @xml:id)"/>

<xsl:variable name="events" select="document('events.xml')"/>
<xsl:key name="events" match="//tei:ptr" use="@target"/>
<xsl:key name="events" match="//tei:ptr" use="tokenize(@target, '\s+')"/>

<xsl:variable name="glosses" select="document(tokenize('glossary.xml;glossary_book_one.xml;glossary_book_two.xml;glossary_book_three.xml', ';'))"/>
<xsl:key name="glosses" match="//tei:item" use="concat('gloss:', @xml:id)"/>
Expand Down Expand Up @@ -196,7 +196,7 @@
<label>illness/medical</label>
<linkGrp type="sgl">
<ptr target="bookrem:ev10" type="book" subtype="bookrem"/>
<ptr target="book1:ev11" type="book" subtype="book1"/>
<ptr target="book1:ev11 book1:ev60" type="book" subtype="book1"/>
</linkGrp>
</event>
-->
Expand Down

0 comments on commit b219ddc

Please sign in to comment.