Skip to content

Commit

Permalink
Merge pull request oasis-tcs#110 from robander/cleanup397
Browse files Browse the repository at this point in the history
Add keyref to xml, markup elements oasis-tcs/dita#397
  • Loading branch information
robander authored Jun 2, 2021
2 parents fbe0e5b + 280f6b7 commit e38c974
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 9 deletions.
5 changes: 4 additions & 1 deletion doctypes/dtd/technicalContent/markupDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
%text;)*"
>
<!ENTITY % markupname.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT markupname %markupname.content;>
<!ATTLIST markupname %markupname.attributes;>
Expand Down
35 changes: 28 additions & 7 deletions doctypes/dtd/technicalContent/xmlDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
%text;)*"
>
<!ENTITY % numcharref.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT numcharref %numcharref.content;>
<!ATTLIST numcharref %numcharref.attributes;>
Expand All @@ -49,7 +52,10 @@
%text;)*"
>
<!ENTITY % parameterentity.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT parameterentity %parameterentity.content;>
<!ATTLIST parameterentity %parameterentity.attributes;>
Expand All @@ -63,7 +69,10 @@
%text;)*"
>
<!ENTITY % textentity.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT textentity %textentity.content;>
<!ATTLIST textentity %textentity.attributes;>
Expand All @@ -77,7 +86,10 @@
%text;)*"
>
<!ENTITY % xmlatt.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT xmlatt %xmlatt.content;>
<!ATTLIST xmlatt %xmlatt.attributes;>
Expand All @@ -91,7 +103,10 @@
%text;)*"
>
<!ENTITY % xmlelement.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT xmlelement %xmlelement.content;>
<!ATTLIST xmlelement %xmlelement.attributes;>
Expand All @@ -105,7 +120,10 @@
%text;)*"
>
<!ENTITY % xmlnsname.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT xmlnsname %xmlnsname.content;>
<!ATTLIST xmlnsname %xmlnsname.attributes;>
Expand All @@ -119,7 +137,10 @@
%text;)*"
>
<!ENTITY % xmlpi.attributes
"%univ-atts;"
"keyref
CDATA
#IMPLIED
%univ-atts;"
>
<!ELEMENT xmlpi %xmlpi.content;>
<!ATTLIST xmlpi %xmlpi.attributes;>
Expand Down
3 changes: 3 additions & 0 deletions doctypes/rng/technicalContent/markupDomain.rng
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
</zeroOrMore>
</define>
<define name="markupname.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="markupname.element">
Expand Down
21 changes: 21 additions & 0 deletions doctypes/rng/technicalContent/xmlDomain.rng
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
</zeroOrMore>
</define>
<define name="numcharref.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="numcharref.element">
Expand All @@ -85,6 +88,9 @@
</zeroOrMore>
</define>
<define name="parameterentity.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="parameterentity.element">
Expand All @@ -111,6 +117,9 @@
</zeroOrMore>
</define>
<define name="textentity.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="textentity.element">
Expand Down Expand Up @@ -138,6 +147,9 @@
</zeroOrMore>
</define>
<define name="xmlatt.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="xmlatt.element">
Expand All @@ -164,6 +176,9 @@
</zeroOrMore>
</define>
<define name="xmlelement.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="xmlelement.element">
Expand All @@ -190,6 +205,9 @@
</zeroOrMore>
</define>
<define name="xmlnsname.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="xmlnsname.element">
Expand Down Expand Up @@ -217,6 +235,9 @@
</zeroOrMore>
</define>
<define name="xmlpi.attributes">
<optional>
<attribute name="keyref"/>
</optional>
<ref name="univ-atts"/>
</define>
<define name="xmlpi.element">
Expand Down

0 comments on commit e38c974

Please sign in to comment.