Skip to content

Commit

Permalink
Add keyref to highlight, emphasis elements oasis-tcs#397
Browse files Browse the repository at this point in the history
  • Loading branch information
robander committed Jun 1, 2021
1 parent 55e5e6b commit f83950d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 10 deletions.
10 changes: 8 additions & 2 deletions doctypes/dtd/base/emphasisDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@
%required-cleanup;)*"
>
<!ENTITY % strong.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT strong %strong.content;>
<!ATTLIST strong %strong.attributes;>
Expand All @@ -63,7 +66,10 @@
%required-cleanup;)*"
>
<!ENTITY % em.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT em %em.content;>
<!ATTLIST em %em.attributes;>
Expand Down
40 changes: 32 additions & 8 deletions doctypes/dtd/base/highlightDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
%required-cleanup;)*"
>
<!ENTITY % b.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT b %b.content;>
<!ATTLIST b %b.attributes;>
Expand All @@ -70,7 +73,10 @@
%required-cleanup;)*"
>
<!ENTITY % u.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT u %u.content;>
<!ATTLIST u %u.attributes;>
Expand All @@ -86,7 +92,10 @@
%required-cleanup;)*"
>
<!ENTITY % i.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT i %i.content;>
<!ATTLIST i %i.attributes;>
Expand All @@ -102,7 +111,10 @@
%required-cleanup;)*"
>
<!ENTITY % line-through.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT line-through %line-through.content;>
<!ATTLIST line-through %line-through.attributes;>
Expand All @@ -118,7 +130,10 @@
%required-cleanup;)*"
>
<!ENTITY % overline.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT overline %overline.content;>
<!ATTLIST overline %overline.attributes;>
Expand All @@ -134,7 +149,10 @@
%required-cleanup;)*"
>
<!ENTITY % tt.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT tt %tt.content;>
<!ATTLIST tt %tt.attributes;>
Expand All @@ -150,7 +168,10 @@
%required-cleanup;)*"
>
<!ENTITY % sup.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT sup %sup.content;>
<!ATTLIST sup %sup.attributes;>
Expand All @@ -166,7 +187,10 @@
%required-cleanup;)*"
>
<!ENTITY % sub.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT sub %sub.content;>
<!ATTLIST sub %sub.attributes;>
Expand Down
6 changes: 6 additions & 0 deletions doctypes/rng/base/emphasisDomain.rng
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
</zeroOrMore>
</define>
<define name="strong.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="strong.element">
Expand Down Expand Up @@ -117,6 +120,9 @@
</zeroOrMore>
</define>
<define name="em.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="em.element">
Expand Down
24 changes: 24 additions & 0 deletions doctypes/rng/base/highlightDomain.rng
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
</zeroOrMore>
</define>
<define name="b.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="b.element">
Expand Down Expand Up @@ -141,6 +144,9 @@
</zeroOrMore>
</define>
<define name="u.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="u.element">
Expand Down Expand Up @@ -169,6 +175,9 @@
</zeroOrMore>
</define>
<define name="i.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="i.element">
Expand Down Expand Up @@ -198,6 +207,9 @@
</zeroOrMore>
</define>
<define name="line-through.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="line-through.element">
Expand Down Expand Up @@ -226,6 +238,9 @@
</zeroOrMore>
</define>
<define name="overline.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="overline.element">
Expand Down Expand Up @@ -254,6 +269,9 @@
</zeroOrMore>
</define>
<define name="tt.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="tt.element">
Expand Down Expand Up @@ -282,6 +300,9 @@
</zeroOrMore>
</define>
<define name="sup.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="sup.element">
Expand Down Expand Up @@ -312,6 +333,9 @@
</zeroOrMore>
</define>
<define name="sub.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="sub.element">
Expand Down

0 comments on commit f83950d

Please sign in to comment.