Skip to content

Commit

Permalink
require license ref in freedict-P5.rng
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb committed Nov 16, 2017
1 parent 740f51d commit f3e2a21
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion shared/freedict-P5.rng
Original file line number Diff line number Diff line change
Expand Up @@ -5736,6 +5736,23 @@ distribution of a text.</a:documentation>
<oneOrMore>
<ref name="tei_model.pLike"/>
</oneOrMore>

<!-- Make sure that at least one <p> contains a <ref target=""></ref>. This should be the license name and URL -->
<zeroOrMore>
<element name="p"><text/></element>
</zeroOrMore>
<element name="p">
<text/>
<element name="ref">
<attribute name="target"/>
<text/>
</element>
<text/>
</element>
<zeroOrMore>
<element name="p"><text/></element>
</zeroOrMore>

<ref name="tei_att.global.attribute.xmlid"/>
<ref name="tei_att.global.attribute.n"/>
<ref name="tei_att.global.attribute.xmllang"/>
Expand Down Expand Up @@ -9228,4 +9245,4 @@ element on which the ana attribute appears.</a:documentation>
<start>
<ref name="tei_TEI"/>
</start>
</grammar>
</grammar>

0 comments on commit f3e2a21

Please sign in to comment.