Abbreviated-form Use in PDF output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 48
- Joined: Sat Jan 26, 2013 6:07 pm
Abbreviated-form Use in PDF output
Post by mstrubberg »
Here is the map:
<map id="m_MasterMap" xml:lang="en-us">
<title>Master Map</title>
<glossref href="g_AntiLockBreaks.xml" keys="abskey" print="yes"/>
<topicref format="dita" href="c_ConceptUsingGlossaryTerm.xml" scope="local" type="concept"/>
</map>
Here is the defined glossary term:
<glossentry id="abs-definition" xml:lang="en-us">
<glossterm>Anti-lock Braking System</glossterm>
<glossdef>A break technology that minimizes vehicle skidding.</glossdef>
<glossBody>
<glossSurfaceForm>Anti-lock Braking System (ABS)</glossSurfaceForm>
<glossAlt>
<glossAcronym>ABS</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
Here is the concept topic using abbreviated-form that calls the key abskey that is mapped to the glossary term:
<concept id="c_ConceptUsingGlossaryTerm" xml:lang="en">
<title>Concept Using Glossary Term</title>
<shortdesc>This concept topic uses the abbreviated-form element to make several references to a glossary term. In the first instance, the term is spelled out; thereafter, only the term acronym appears in output.</shortdesc>
<conbody>
<p>An <abbreviated-form keyref="abskey"/> helps a driver to stop. For this reason, many find an <abbreviated-form keyref="abskey"/> useful.</p>
<p>To engage the <abbreviated-form keyref="abskey"/>, press the brake peddle and hold firmly. You will feel the <abbreviated-form keyref="abskey"
/> vibrate the brake peddle as it locks and unlocks the brakes.</p>
</conbody>
</concept>
The result of this XML in PDF output:
The concept topic using abbreviated-form, properly uses the glossSurfaceForm text on first occurrence and glossAcronym text on subsequent occurrences as it should in both XHTML and PDF outputs.
However, because the map is calling the glossary term using a <glossref print="yes"> the glossary term topic itself also is rendering as the first topic in PDF output.
QUESTION: How to I prevent the glossary term topic itself from displaying as the first topic in the PDF output but maintain the desired results in the abbreviated-form elements in the XHTML and PDF outputs?
<map id="m_MasterMap" xml:lang="en-us">
<title>Master Map</title>
<glossref href="g_AntiLockBreaks.xml" keys="abskey" print="yes"/>
<topicref format="dita" href="c_ConceptUsingGlossaryTerm.xml" scope="local" type="concept"/>
</map>
Here is the defined glossary term:
<glossentry id="abs-definition" xml:lang="en-us">
<glossterm>Anti-lock Braking System</glossterm>
<glossdef>A break technology that minimizes vehicle skidding.</glossdef>
<glossBody>
<glossSurfaceForm>Anti-lock Braking System (ABS)</glossSurfaceForm>
<glossAlt>
<glossAcronym>ABS</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
Here is the concept topic using abbreviated-form that calls the key abskey that is mapped to the glossary term:
<concept id="c_ConceptUsingGlossaryTerm" xml:lang="en">
<title>Concept Using Glossary Term</title>
<shortdesc>This concept topic uses the abbreviated-form element to make several references to a glossary term. In the first instance, the term is spelled out; thereafter, only the term acronym appears in output.</shortdesc>
<conbody>
<p>An <abbreviated-form keyref="abskey"/> helps a driver to stop. For this reason, many find an <abbreviated-form keyref="abskey"/> useful.</p>
<p>To engage the <abbreviated-form keyref="abskey"/>, press the brake peddle and hold firmly. You will feel the <abbreviated-form keyref="abskey"
/> vibrate the brake peddle as it locks and unlocks the brakes.</p>
</conbody>
</concept>
The result of this XML in PDF output:
The concept topic using abbreviated-form, properly uses the glossSurfaceForm text on first occurrence and glossAcronym text on subsequent occurrences as it should in both XHTML and PDF outputs.
However, because the map is calling the glossary term using a <glossref print="yes"> the glossary term topic itself also is rendering as the first topic in PDF output.
QUESTION: How to I prevent the glossary term topic itself from displaying as the first topic in the PDF output but maintain the desired results in the abbreviated-form elements in the XHTML and PDF outputs?
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service