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.
Signed-off-by: Robert D Anderson <[email protected]>
- Loading branch information
Showing
6 changed files
with
104 additions
and
87 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
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
65 changes: 65 additions & 0 deletions
65
specification/archSpec/base/example-conref-ditauseconreftarget.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,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | ||
<concept id="usingthe-dita-use-conref-targetvalue" xml:lang="en-us" rev="review-ella"> | ||
<title>Example: Using the <keyword>-dita-use-conref-target</keyword> value</title> | ||
<shortdesc>In this scenario, an element in a map is reused, with some of the attributes resolved | ||
using the <keyword>-dita-use-conref-target</keyword> token.</shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm>conref attributes<indexterm>values, | ||
<keyword>-dita-use-conref-target</keyword></indexterm></indexterm> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<conbody> | ||
<p>Consider the following scenario, where a <xmlelement>topichead</xmlelement> element in a DITA | ||
map uses <xmlatt>conref</xmlatt>. It specifies the <xmlatt>deliveryTarget</xmlatt> attribute | ||
as well as the <xmlatt>toc</xmlatt> attribute.</p> | ||
<codeblock id="codeblock_slf_tdn_g2c"><map><title>Conref demonstration</title> | ||
<topichead id="heading" | ||
deliveryTarget="pdf" | ||
toc="yes" | ||
linking="normal"> | ||
<topicmeta> | ||
<navtitle>This is a heading</navtitle> | ||
</topicmeta> | ||
<topicref href="topic.dita"/> | ||
</topichead> | ||
|
||
<topichead conref="#heading" | ||
deliveryTarget="-dita-use-conref-target" | ||
toc="no"> | ||
</topichead> | ||
</map></codeblock> | ||
<p>When the content reference is resolved, the <xmlatt>deliveryTarget</xmlatt> attribute from | ||
the referencing element is not preserved because it uses | ||
<keyword>-dita-use-conref-target</keyword>. Instead, it uses the value | ||
<keyword>pdf</keyword> from the referenced element. The <xmlatt>linking</xmlatt> attribute, | ||
which is not specified on the referencing element, is also resolved based on the referenced | ||
element. The <xmlatt>toc</xmlatt> attribute from the referencing element overrides the | ||
<xmlatt>toc</xmlatt> attribute on the referenced element using normal conref resolution | ||
rules:</p> | ||
<codeblock id="codeblock_zvs_ydn_g2c"><map><title>Conref demonstration</title> | ||
<topichead id="heading" | ||
deliveryTarget="pdf" | ||
toc="yes" | ||
linking="normal"> | ||
<topicmeta> | ||
<navtitle>This is a heading</navtitle> | ||
</topicmeta> | ||
<topicref href="topic.dita"/> | ||
</topichead> | ||
|
||
<topichead deliveryTarget="pdf" | ||
toc="no" | ||
linking="normal"> | ||
<topicmeta> | ||
<navtitle>This is a heading</navtitle> | ||
</topicmeta> | ||
<topicref href="topic.dita"/> | ||
</topichead> | ||
</map> | ||
</codeblock> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> | ||
<concept id="examples-conref"> | ||
<title>Examples of conref</title> | ||
<title>Examples of content referencing</title> | ||
<shortdesc>This section contains examples and scenarios that illustrate the use and processing | ||
of <xmlatt>conref</xmlatt> and related content-referencing attributes.</shortdesc> | ||
of <xmlatt>conref</xmlatt>, <xmlatt>conkeyref</xmlatt>, and related content-referencing | ||
attributes.</shortdesc> | ||
</concept> |