Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 5, 2024
1 parent 70cb912 commit b6ddc3a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions grammars/basicdoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ note-no-id =
NoteNoIdBody
}

NoteAttributes = NumberingAttrs
NoteAttributes = NumberingAttributes

NoteBody =
paragraph+
Expand Down Expand Up @@ -778,14 +778,14 @@ ruby = element ruby {
ruby_pronunciation = element pronunciation {
## Ruby annotation value
attribute value { text },
LocalizedStringAttrs
LocalizedStringAttributes
}

## Ruby annotation giving information other than pronunciation of text
ruby_annotation = element annotation {
## Ruby annotation value
attribute value { text },
LocalizedStringAttrs
LocalizedStringAttributes
}

## Line break
Expand Down Expand Up @@ -896,7 +896,7 @@ XrefAttributes =
## The identifier of a section, block or inlined element being referenced
attribute target { xsd:IDREF },
## 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
16 changes: 9 additions & 7 deletions grammars/basicdoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ in a document (e.g. sourcecode annotations)</a:documentation>
</element>
</define>
<define name="NoteAttributes">
<ref name="NumberingAttrs"/>
<ref name="NumberingAttributes"/>
</define>
<define name="NoteBody">
<oneOrMore>
Expand Down Expand Up @@ -1462,7 +1462,7 @@ Restricted recursively to contain only other such inline elements with no identi
<attribute name="value">
<a:documentation>Ruby annotation value</a:documentation>
</attribute>
<ref name="LocalizedStringAttrs"/>
<ref name="LocalizedStringAttributes"/>
</element>
</define>
<define name="ruby_annotation">
Expand All @@ -1471,7 +1471,7 @@ Restricted recursively to contain only other such inline elements with no identi
<attribute name="value">
<a:documentation>Ruby annotation value</a:documentation>
</attribute>
<ref name="LocalizedStringAttrs"/>
<ref name="LocalizedStringAttributes"/>
</element>
</define>
<define name="br">
Expand Down Expand Up @@ -1657,10 +1657,12 @@ which can be bookmarks as well as block or section references</a:documentation>
<a:documentation>The identifier of a section, block or inlined element being referenced</a:documentation>
<data type="IDREF"/>
</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

0 comments on commit b6ddc3a

Please sign in to comment.