Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Dec 11, 2020
1 parent b5b6715 commit 07ce52d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
12 changes: 6 additions & 6 deletions grammars/basicdoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ index = element index {
attribute tertiary { text }?
}

index = element index {
attribute primary { text },
attribute secondary { text }?,
attribute tertiary { text }?,
attribute target { text },
attribute also { xsd:boolean }
index-xref = element index-xref {
attribute also { xsd:boolean },
element primary { PureTextElement+ },
element secondary { PureTextElement+ }?,
element tertiary { PureTextElement+ }?,
element target { PureTextElement+ }
}


Expand Down
34 changes: 25 additions & 9 deletions grammars/basicdoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -738,19 +738,35 @@
</optional>
</element>
</define>
<define name="index">
<element name="index">
<attribute name="primary"/>
<define name="index-xref">
<element name="index-xref">
<attribute name="also">
<data type="boolean"/>
</attribute>
<element name="primary">
<oneOrMore>
<ref name="PureTextElement"/>
</oneOrMore>
</element>
<optional>
<attribute name="secondary"/>
<element name="secondary">
<oneOrMore>
<ref name="PureTextElement"/>
</oneOrMore>
</element>
</optional>
<optional>
<attribute name="tertiary"/>
<element name="tertiary">
<oneOrMore>
<ref name="PureTextElement"/>
</oneOrMore>
</element>
</optional>
<attribute name="target"/>
<attribute name="also">
<data type="boolean"/>
</attribute>
<element name="target">
<oneOrMore>
<ref name="PureTextElement"/>
</oneOrMore>
</element>
</element>
</define>
<!-- bare ID element, used for referencing arbitrary spans of text -->
Expand Down

0 comments on commit 07ce52d

Please sign in to comment.