Skip to content

Commit

Permalink
Merge pull request #73 from acdh-oeaw/64-allow-cittype=examplequoteref
Browse files Browse the repository at this point in the history
include ref type entry with target
  • Loading branch information
rausch-supola authored Aug 1, 2024
2 parents 6e9d83d + 8b6ed06 commit df3846b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 802_tei_odd/shawi.odd
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@
</attList>
</elementSpec>

<elementSpec ident="ref" mode="change" module="core">
<constraintSpec ident="quote-ref" scheme="schematron">
<constraint>
<s:rule context="tei:ref[@type='entry']">
<s:assert test="parent::tei:quote">A ref type entry has to be child of quote</s:assert>
<s:let name="entryIDs" value="//tei:entry/@xml:id"/>
<s:assert test="some $entryID in $entryIDs satisfies $entryID = substring-after(@target, '#')">The target attribute of a ref element in quote (<s:value-of select="@target"/>) must match the xml:id of an entry</s:assert>
</s:rule>
</constraint>
</constraintSpec>
</elementSpec>

</schemaSpec>
</div>
</body>
Expand Down

0 comments on commit df3846b

Please sign in to comment.