Skip to content

Commit

Permalink
link/@type is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 15, 2024
1 parent 79e0797 commit 1c01537
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion grammars/basicdoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ HyperlinkAttributes =
## The location or online identifier of the external document or resource
attribute target { xsd:anyURI },
## The type of Reference Element, prescribing how it is to be rendered
attribute type { ReferenceFormat },
attribute type { ReferenceFormat }?,
## Alternate text, used for accessibility
attribute alt { text }?

Expand Down
10 changes: 6 additions & 4 deletions grammars/basicdoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -1635,10 +1635,12 @@ which can be bookmarks as well as block or section references</a:documentation>
<a:documentation>The location or online identifier of the external document or resource</a:documentation>
<data type="anyURI"/>
</attribute>
<attribute name="type">
<a:documentation>The type of Reference Element, prescribing how it is to be rendered</a:documentation>
<ref name="ReferenceFormat"/>
</attribute>
<optional>
<attribute name="type">
<a:documentation>The type of Reference Element, prescribing how it is to be rendered</a:documentation>
<ref name="ReferenceFormat"/>
</attribute>
</optional>
<optional>
<attribute name="alt">
<a:documentation>Alternate text, used for accessibility</a:documentation>
Expand Down
2 changes: 1 addition & 1 deletion grammars/relaton-models

0 comments on commit 1c01537

Please sign in to comment.