Skip to content

Commit

Permalink
Merge pull request #493 from robander/titlerole
Browse files Browse the repository at this point in the history
#397 making title-role required
  • Loading branch information
robander authored Nov 8, 2021
2 parents 35b955b + 1780fe7 commit 8630ee2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion doctypes/dtd/base/commonElements.mod
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@
<!ENTITY % titlealt.attributes
"title-role
CDATA
#IMPLIED
#REQUIRED
%univ-atts;"
>
<!ELEMENT titlealt %titlealt.content;>
Expand Down
20 changes: 5 additions & 15 deletions doctypes/rng/base/alternativeTitlesDomain.rng
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@
</zeroOrMore>
</define>
<define name="navtitle.attributes">
<optional>
<attribute name="title-role" a:defaultValue="navigation"/>
</optional>
<attribute name="title-role" a:defaultValue="navigation"/>
<ref name="univ-atts"/>
</define>
<define name="navtitle.element">
Expand Down Expand Up @@ -127,9 +125,7 @@
</zeroOrMore>
</define>
<define name="searchtitle.attributes">
<optional>
<attribute name="title-role" a:defaultValue="search"/>
</optional>
<attribute name="title-role" a:defaultValue="search"/>
<ref name="univ-atts"/>
</define>
<define name="searchtitle.element">
Expand Down Expand Up @@ -158,9 +154,7 @@
</zeroOrMore>
</define>
<define name="linktitle.attributes">
<optional>
<attribute name="title-role" a:defaultValue="linking"/>
</optional>
<attribute name="title-role" a:defaultValue="linking"/>
<ref name="univ-atts"/>
</define>
<define name="linktitle.element">
Expand Down Expand Up @@ -189,9 +183,7 @@
</zeroOrMore>
</define>
<define name="subtitle.attributes">
<optional>
<attribute name="title-role" a:defaultValue="subtitle"/>
</optional>
<attribute name="title-role" a:defaultValue="subtitle"/>
<ref name="univ-atts"/>
</define>
<define name="subtitle.element">
Expand Down Expand Up @@ -220,9 +212,7 @@
</zeroOrMore>
</define>
<define name="titlehint.attributes">
<optional>
<attribute name="title-role" a:defaultValue="hint"/>
</optional>
<attribute name="title-role" a:defaultValue="hint"/>
<ref name="univ-atts"/>
</define>
<define name="titlehint.element">
Expand Down
3 changes: 2 additions & 1 deletion specification/langRef/attributes/commonAttributes.dita
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@
authors. </dd>
</dlentry>
<dlentry>
<dt id="attr-title-role"><xmlatt>title-role</xmlatt></dt>
<dt id="attr-title-role"><xmlatt>title-role</xmlatt>
<ph conkeyref="reuse-attributes/required-attr"/></dt>
<dd>Specifies the role or roles fulfilled by the alternative title. Multiple roles are
separated by white space. Applications can define roles; the following roles are defined
in the specification: <keyword>linking</keyword>, <keyword>navigation</keyword>,
Expand Down

0 comments on commit 8630ee2

Please sign in to comment.