forked from oasis-tcs/dita
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request oasis-tcs#732 from keberlein/generate-spec-draft
Implement oasis-tcs#647
- Loading branch information
Showing
17 changed files
with
242 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,9 @@ | |
chunk | ||
CDATA | ||
#IMPLIED | ||
subjectrefs | ||
CDATA | ||
#IMPLIED | ||
%univ-atts;" | ||
> | ||
<!ELEMENT keydef %keydef.content;> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...ification/archSpec/base/example-subject-scheme-map-used-to-define-taxonomic-subjects.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | ||
<concept id="a-subject-scheme-map-used-to-define-taxonomic-subjects"> | ||
<title>Example: a subject scheme map used to define taxonomic | ||
subjects</title> | ||
<shortdesc>A subject scheme map can be used to define taxonomic subjects. | ||
Once defined, the subjects can be referenced by specifying a | ||
<xmlatt>subjectrefs</xmlatt> attribute on a | ||
<xmlelement>topicref</xmlelement> element.</shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm>examples<indexterm>subject scheme | ||
maps<indexterm>defining taxonomic | ||
subjects</indexterm></indexterm></indexterm> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<conbody> | ||
<p>The following subject scheme map defines a set of subjects that are | ||
used to classify content:</p> | ||
<codeblock><subjectScheme> | ||
<subjectdef keys="content-types"> | ||
<subjectdef keys="conceptual-material"/> | ||
<subjectdef keys="reference"/> | ||
<subjectdef keys="tutorial"/> | ||
</subjectdef> | ||
<subjectdef keys="operating-systems"> | ||
<subjectdef keys="linux"/> | ||
<subjectdef keys="macosx"/> | ||
<subjectdef keys="windows"/> | ||
</subjectdef> | ||
<subjectdef keys="user-tasks"> | ||
<subjectdef keys="administering"/> | ||
<subjectdef keys="developing"/> | ||
<subjectdef keys="installing"/> | ||
<subjectdef keys="troubleshooting"/> | ||
</subjectdef> | ||
</subjectScheme></codeblock> | ||
<p>The keys assigned to the subject definitions can be referenced by | ||
specifying the <xmlatt>subjectrefs</xmlatt> attribute on topic | ||
references in a navigation map:</p> | ||
<codeblock><map> | ||
<title>User assistance for the Acme Widget</title> | ||
<!-- ... --> | ||
<topicref keyref="install-overview" <b>subjectrefs="installing"</b>> | ||
<topicref keyref="install-linux"/> | ||
<topicref keyref="install-macosx"/> | ||
<topicref keyref="install-windows"/> | ||
<topicref keyref="install-troubleshooting" <b>subjectrefs="troubleshooting"</b>/> | ||
</topicref> | ||
<!-- ... --> | ||
</map></codeblock> | ||
<p>Because the <xmlatt>subjectrefs</xmlatt> attribute cascades, the | ||
effective value of the above markup is the same as the following | ||
markup:</p> | ||
<codeblock><map> | ||
<title>User assistance for the Acme Widget</title> | ||
<!-- ... --> | ||
<topicref keyref="install-overview" subjectrefs="installing"> | ||
<topicref keyref="install-linux" subjectrefs="installing"/> | ||
<topicref keyref="install-macosx" subjectrefs="installing"/> | ||
<topicref keyref="install-windows" subjectrefs="installing"/> | ||
<topicref keyref="install-troubleshooting" subjectrefs="installing troubleshooting"/> | ||
</topicref> | ||
<!-- ... --> | ||
</map></codeblock> | ||
</conbody> | ||
</concept> |
60 changes: 60 additions & 0 deletions
60
specification/archSpec/base/example-subjectrefs-attribute-with-key-scopes.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | ||
<concept id="example-subjectrefs-attribute-with-key-scopes"> | ||
<title>Example: <xmlatt>subjectrefs</xmlatt> attribute with key | ||
scopes</title> | ||
<shortdesc></shortdesc> | ||
<conbody> | ||
<draft-comment author="Kristen J Eberlein" time="29 July 2022"> | ||
<p>The following is content that Eliot Kimber suggested be included | ||
in the DITA 2.0 specification as part of the review of proposal | ||
#647. It has not been edited.</p> | ||
</draft-comment> | ||
<p>A subject scheme map may be included in a map as either a normal sub | ||
map or as a peer root map and associated with a key scope on the map | ||
reference.</p> | ||
<fig> | ||
<title>A subject scheme map included as a sub map with a key scope: </title> | ||
<codeblock><map> | ||
<title>User assistance for the Acme Widget</title> | ||
<!-- ... --> | ||
<mapref keyscope="subjects" href="subjectschemes/subject-scheme-01.ditamap"/> | ||
<topicref keyref="install-overview" subjectrefs="subjects.installing"> | ||
<topicref keyref="install-linux"/> | ||
<topicref keyref="install-macosx"/> | ||
<topicref keyref="install-windows"/> | ||
<topicref keyref="install-troubleshooting" subjectrefs="subjects.troubleshooting"/> | ||
</topicref> | ||
<!-- ... --> | ||
</map></codeblock> | ||
</fig> | ||
<p> The keys defined in referenced subject scheme map are included in | ||
the referencing map's key space. References to the subject keys must | ||
be scope qualified (i.e., "subjects.installing"). Putting the subject | ||
scheme keys in a key scope ensures that the keys defined in the | ||
subject scheme do not conflict with any keys defined elsewhere in the | ||
referencing map (although the referencing map could still override | ||
any keys defined in the subject scheme map).</p> | ||
<p>The subject scheme map can also be referenced as a peer-scope root | ||
map in a key scope:</p> | ||
<codeblock><map> | ||
<title>User assistance for the Acme Widget</title> | ||
<!-- ... --> | ||
<mapref keyscope="subjects" scope="peer" href="subjectschemes/subject-scheme-01.ditamap"/> | ||
<topicref keyref="install-overview" subjectrefs="subjects.installing"> | ||
<topicref keyref="install-linux"/> | ||
<topicref keyref="install-macosx"/> | ||
<topicref keyref="install-windows"/> | ||
<topicref keyref="install-troubleshooting" subjectrefs="subjects.troubleshooting"/> | ||
</topicref> | ||
<!-- ... --> | ||
</map></codeblock> | ||
<p>As a peer map, the keys defined in the subject scheme map are not | ||
included in the referencing map's key space but may be resolved using | ||
normal cross-deliverable key reference resolution. Processors that | ||
support cross-deliverable linking may also choose to resolve | ||
references from @"subjectrefs" to keys in peer subject scheme maps, | ||
for example to report keys specified on @"subjectrefs" that cannot be | ||
found in the peer subject scheme map.</p> | ||
</conbody> | ||
</concept> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | ||
<concept id="subjectrefs-attribute"> | ||
<title>The <xmlatt>subjectrefs</xmlatt> attribute</title> | ||
<shortdesc>The <xmlatt>subjectrefs</xmlatt> attribute specifies one or | ||
more keys that are defined by a subject definition in a subject scheme | ||
map. Multiple values are separated by white space.</shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm><xmlatt>subjectrefs</xmlatt><indexterm>overview</indexterm></indexterm> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<conbody> | ||
<p>The <xmlatt>subjectrefs</xmlatt> attribute cascades. When specified | ||
on a topic reference, the <xmlatt>subjectrefs</xmlatt> attribute | ||
associates the referenced resource with subjects that are defined in | ||
subject scheme maps.</p> | ||
<p>The DITA 2.0 specification does not indicate processing expectations | ||
for the <xmlatt>subjectrefs</xmlatt> attribute. The DITA Technical | ||
Committee expects to specify such expectations in the future.</p> | ||
</conbody> | ||
</concept> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.