abbreviated-form not working?
Oxygen general issues.
-
- Posts: 132
- Joined: Thu Apr 17, 2014 1:55 am
abbreviated-form not working?
Post by tomjohnson1492 »
I'm having trouble getting the abbreviated-form element working in Oxygen 16. I'm not sure what I'm doing wrong.
I have a glossterm topic defined like this:
My map file has this:
Then I reference the glossary entry in a topic like this:
When I publish webhelp, nothing appears for the term. In contrast, if I refer to the term like this it does work:
Am I doing something wrong?
I have a glossterm topic defined like this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd">
<glossentry id="glossentry_k5k_rdg_r4">
<glossterm>Open Toolkit</glossterm>
<glossdef>Open Toolkit -- This is what processes DITA into the various outputs.</glossdef>
<glossBody>
<glossSurfaceForm>Open Toolkit (OT)</glossSurfaceForm>
<glossAlt>
<glossAcronym>OT</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
Code: Select all
<glossref keys="opentoolkit" href="ot.dita" />
Code: Select all
<p>You can use the <abbreviated-form keyref="opentoolkit"/> to process your dita files.</p>
Code: Select all
<p>You can use the <term keyref="opentoolkit">Open Toolkit</term> to process your dita files.</p>
-
- Posts: 132
- Joined: Thu Apr 17, 2014 1:55 am
Re: abbreviated-form not working?
Post by tomjohnson1492 »
Here's a link to the dita spec on abbreviated-form: http://docs.oasis-open.org/dita/v1.2/os ... -form.html
-
- Posts: 132
- Joined: Thu Apr 17, 2014 1:55 am
Re: abbreviated-form not working?
Post by tomjohnson1492 »
Here's a link to the dita spec on abbreviated-form: http://docs.oasis-open.org/dita/v1.2/os ... -form.html
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: abbreviated-form not working?
Post by sorin_ristache »
Hello,
because this is the ID value used in the keys and keyref attributes.
Regards,
Sorin
You have to define the glossary entry as:tomjohnson1492 wrote:I have a glossterm topic defined like this:My map file has this:Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd">
<glossentry id="glossentry_k5k_rdg_r4">Then I reference the glossary entry in a topic like this:Code: Select all
<glossref keys="opentoolkit" href="ot.dita" />
When I publish webhelp, nothing appears for the term.[/code]Code: Select all
<p>You can use the <abbreviated-form keyref="opentoolkit"/> to process your dita files.</p>
Am I doing something wrong?
Code: Select all
<glossentry id="opentoolkit">
I don't see the attribute value opentoolkit defined in your glossary file or in other file, so I don't see how it can work. The value opentoolkit is referenced but never defined in the example code that you posted.tomjohnson1492 wrote:In contrast, if I refer to the term like this it does work:
<p>You can use the <term keyref="opentoolkit">Open Toolkit</term> to process your dita files.</p>
Regards,
Sorin
-
- Posts: 132
- Joined: Thu Apr 17, 2014 1:55 am
Re: abbreviated-form not working?
Post by tomjohnson1492 »
Thanks, it's working now. However, I have a related issue. On the glossary entry page, after the term definition, the surface form and the abbreviated form of the term appear on the webhelp output. Is there a way to suppress them from appearing without giving them an output class that has a display of none or something?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: abbreviated-form not working?
Post by sorin_ristache »
The surface form (the content of the glossSurfaceForm element) and the abbreviated form (the content of the glossAcronym element) of the glossary term can be suppressed with a custom CSS set in the args.css param of the Webhelp transformation, for example:
Regards,
Sorin
Code: Select all
.glossSurfaceForm, .glossAlt {
display: none;
}
Regards,
Sorin
-
- Posts: 132
- Joined: Thu Apr 17, 2014 1:55 am
Re: abbreviated-form not working?
Post by tomjohnson1492 »
Awesome. I didn't even know the args.css was a parameter. That makes it very convenient. Thanks.
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