Skip to content

Commit

Permalink
Add impose-role to DTD oasis-tcs#670
Browse files Browse the repository at this point in the history
  • Loading branch information
robander committed Oct 18, 2022
1 parent 7282c96 commit 737ae46
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions doctypes/dtd/base/ditavalrefDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
processing-role
CDATA
'resource-only'
%impose-role-attribute-fixed-keeptarget;
%ditavalref-univ-atts;"
>
<!ELEMENT ditavalref %ditavalref.content;>
Expand Down
18 changes: 18 additions & 0 deletions doctypes/dtd/base/map.mod
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,23 @@ PUBLIC "-//OASIS//ELEMENTS DITA 2.0 Map//EN"
#IMPLIED"
>

<!ENTITY % impose-role-attribute
"impose-role
(impose |
keeptarget |
-dita-use-conref-target)
'keeptarget'"
>
<!ENTITY % impose-role-attribute-fixed-keeptarget
"impose-role
(keeptarget)
'keeptarget'"
>
<!ENTITY % impose-role-attribute-fixed-impose
"impose-role
(impose)
'impose'"
>

<!-- ============================================================= -->
<!-- MODULES CALLS -->
Expand Down Expand Up @@ -427,6 +444,7 @@ PUBLIC "-//OASIS//ELEMENTS DITA 2.0 Map//EN"
keys
CDATA
#IMPLIED
%impose-role-attribute;
%topicref-atts;
%univ-atts;"
>
Expand Down
6 changes: 6 additions & 0 deletions doctypes/dtd/base/mapGroup.mod
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
format
CDATA
'ditamap'
%impose-role-attribute-fixed-keeptarget;
%topicref-atts-without-format;
%univ-atts;"
>
Expand Down Expand Up @@ -141,6 +142,9 @@
resource-only |
-dita-use-conref-target)
'resource-only'
impose-role
(keeptarget)
'keeptarget'
type
CDATA
#IMPLIED
Expand Down Expand Up @@ -179,6 +183,7 @@
subjectrefs
CDATA
#IMPLIED
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT keydef %keydef.content;>
Expand Down Expand Up @@ -241,6 +246,7 @@
yes |
-dita-use-conref-target)
#IMPLIED
%impose-role-attribute;
%univ-atts;"
>
<!ELEMENT mapresources %mapresources.content;>
Expand Down
3 changes: 3 additions & 0 deletions doctypes/dtd/subjectScheme/classifyDomain.mod
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
yes |
-dita-use-conref-target)
'no'
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT topicsubject %topicsubject.content;>
Expand Down Expand Up @@ -152,6 +153,7 @@
yes |
-dita-use-conref-target)
'no'
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT topicapply %topicapply.content;>
Expand Down Expand Up @@ -212,6 +214,7 @@
yes |
-dita-use-conref-target)
'no'
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT subjectref %subjectref.content;>
Expand Down
3 changes: 3 additions & 0 deletions doctypes/dtd/subjectScheme/subjectScheme.mod
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
peer |
-dita-use-conref-target)
#IMPLIED
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT schemeref %schemeref.content;>
Expand Down Expand Up @@ -231,6 +232,7 @@
yes |
-dita-use-conref-target)
#IMPLIED
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT subjectdef %subjectdef.content;>
Expand Down Expand Up @@ -423,6 +425,7 @@
yes |
-dita-use-conref-target)
#IMPLIED
%impose-role-attribute-fixed-keeptarget;
%univ-atts;"
>
<!ELEMENT defaultSubject %defaultSubject.content;>
Expand Down

0 comments on commit 737ae46

Please sign in to comment.