Remove <glossbody> from pdf
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 22
- Joined: Tue May 17, 2016 4:58 pm
Remove <glossbody> from pdf
Hi,
I'm using the a glossary in my Ditamap this way I can use the <abbreviated-term> tag and add a glossary of terms to my document. The glossary items look like:
In my pdf output I would like to include the <glossterm> and the <glosdef> so i've added the glossary like this in my ditamap:
in the print i also get the <glossbody> elements, I don't want that, does anybody know how to remove these from the pdf output?
I'm using the a glossary in my Ditamap this way I can use the <abbreviated-term> tag and add a glossary of terms to my document. The glossary items look like:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd">
<glossentry id="test_gloss">
<glossterm>Lorem ipsum</glossterm>
<glossdef><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
Aenean massa.</p></glossdef>
<glossBody>
<glossSurfaceForm>Lorem Ipsum</glossSurfaceForm>
<glossAlt>
<glossAcronym>LS</glossAcronym>
</glossAlt>
</glossBody>
</glossentry>
Code: Select all
<topichead navtitle="Glossary" type="topic">
<topicref href="Glossary/test_gloss.dita" keys="test_gloss" print="yes"/>
</topichead>
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Remove <glossbody> from pdf
Post by radu_pisoi »
Hi,
A solution is to create a PDF customization. The steps for creating a customization directory are described in our manual:
http://oxygenxml.com/doc/versions/18.0/ ... ation.html
Now, in the custom.xsl stylehseet you can add the next template that filters the 'glossbody' element:
A solution is to create a PDF customization. The steps for creating a customization directory are described in our manual:
http://oxygenxml.com/doc/versions/18.0/ ... ation.html
Now, in the custom.xsl stylehseet you can add the next template that filters the 'glossbody' element:
Code: Select all
<xsl:template match="*[contains(@class, ' glossentry/glossBody ')]">
</xsl:template>
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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