DITA Filtering
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 22
- Joined: Wed May 29, 2019 5:43 pm
DITA Filtering
Hi!
I would like to filter some glossentries based on the current publication I am working on. I was hoping to use the attribute with a custom group of values like in the example below:
I want to show only the entries relative to one book (reference_book, or other_book).
I intended to use a ditaval filter for this, that I wrote like this (for the reference_book example):
But nothing appears in the filtered result... What am I doing wrong?
Thanks for your help!
David
I would like to filter some glossentries based on the current publication I am working on. I was hoping to use the
Code: Select all
otherprops
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glossgroup PUBLIC "-//OASIS//DTD DITA Glossary Group//EN" "glossgroup.dtd">
<glossgroup id="definitions" otherprops="publication(reference_book other_book)">
<title>Definitions</title>
<glossgroup id="def_A" otherprops="publication(other_book)">
<title>A</title>
<glossentry id="Above_Ground_Marker" otherprops="publication(other_book)">
<glossterm>Above Ground Marker</glossterm>
<glossdef>
<p>Device near the outside of a pipeline that detects and records the passage of an
In-Line Inspection tool or transmits a signal that is detected and recorded by
the tool. Reference magnets can be applied to serve identical purposes.</p>
</glossdef>
</glossentry>
<glossentry id="Anode_Depletion_Evaluation">
<glossterm>Anode Depletion Evaluation</glossterm>
<glossdef>
<p>This technique consists in evaluating the residual quantity of metal on the
anodes.</p>
</glossdef>
</glossentry>
<glossentry id="Anomaly">
<glossterm>Anomaly</glossterm>
<glossdef>
<p>Indication, generated by non-destructive examination of an irregularity,
deviation from base pipe or sound weld material, which may or may not be an
actual flaw. Anomalies can be or not be detrimental for equipment
performance.</p>
</glossdef>
</glossentry>
<glossentry id="Annulus">
<glossterm>Annulus</glossterm>
<glossdef>
<p>The annular space between the production casing and the production tubing.</p>
</glossdef>
</glossentry>
<glossentry id="Arc_Strike">
<glossterm>Arc Strike</glossterm>
<glossdef>
<p>Localised points of surface melting caused by an electrical arc (also referred to
as hot spot).</p>
</glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_B">
<title>B</title>
<glossentry id="Bend">
<glossterm>Bend</glossterm>
<glossdef>
<p>Physical pipe configuration that changes pipeline direction.</p>
</glossdef>
</glossentry>
<glossentry id="Buckle">
<glossterm>Buckle</glossterm>
<glossdef>
<p>Partial collapse of the pipe due to excessive bending or compression associated
with soil instability, landslides, washouts, frost heaves, earthquakes, etc.</p>
</glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_C">
<title>C</title>
<glossentry id="Capability_plot">
<glossterm>Capability plot</glossterm>
<glossdef><p>A theoretical polar plot of the vessel capability for specific conditions
of wind, waves and currents from different directions and with different
thrusters combinations.</p></glossdef>
</glossentry>
<glossentry id="Capital_Spare_Parts">
<glossterm>Capital Spare Parts</glossterm>
<glossdef>
<p>Capital Spare Parts comply with most of the following criteria :</p>
<ul>
<li>
<p>High value (value being defined for each Project / Affiliate for instance
> k$ 20).</p>
</li>
<li>
<p>Due to their high cost and low frequency rate of use they are purchased
on an investment budget (Capital Expenditure).</p>
</li>
<li>
<p>Considered as strategic for safety and operation (high downtime cost or
impact on COMPANY reputation but not likely to fail and not for routine
maintenance).</p>
</li>
<li>
<p>Long delivery time (typically more than a year) or not off the shelf
(unique piece such as rotor).</p>
</li>
</ul>
<p>Capital Spare Parts are to be described and referenced in both Computerised
Maintenance and Inspection Management System (CMIMS), purchased and delivered,
as initial stock, to the Subsidiary. Capital Spare Parts are identified and
delivered by other CONTRACTORs. They are all managed in operation as Safety
Stock and Specific material. Capital Spare Parts are sometimes called Insurance
Spare.</p>
</glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_D" otherprops="publication(reference_book)">
<title>D</title>
<glossentry id="Deformation" otherprops="publication(reference_book)">
<glossterm>Deformation</glossterm>
<glossdef><p>Change in shape, such as a bend, buckle, dent, ovality, ripple,
wrinkle or any other changer, which affects the roundness of the
pipe's cross-section or straightness of the pipe.</p></glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_F" otherprops="publication(reference_book)">
<title>F</title>
<glossentry id="Flowline" otherprops="publication(reference_book)">
<glossterm>Flowline</glossterm>
<glossdef><p>The conduit system e.g. steel pipeline, flexible line, bundle, etc.,
divided in two parts: static "sealine” section resting on seabed and dynamic
"riser" section ‘hanging’ from seabed to surface</p></glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_R" otherprops="publication(reference_book)">
<title>R</title>
<glossentry id="Riser" otherprops="publication(reference_book)">
<glossterm>Riser</glossterm>
<glossdef><p>"Dynamic" part of flowline connecting sealine to the termination
point of platform</p></glossdef>
</glossentry>
</glossgroup>
<glossgroup id="def_S" otherprops="publication(reference_book)">
<title>S</title>
<glossentry id="Sealine" otherprops="publication(reference_book)">
<glossterm>Sealine</glossterm>
<glossdef><p>"Static" section resting on seabed of a conduct for the flow of
liquid and/or gas</p></glossdef>
</glossentry>
</glossgroup>
</glossgroup>
I intended to use a ditaval filter for this, that I wrote like this (for the reference_book example):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<val>
<prop action="exclude"/>
<prop action="include" att="otherprops" val="publication(reference_book)"/>
</val>
Thanks for your help!
David
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA Filtering
Hi David,
I do not have time to test right now so if this does not work for you I can perform more tests tomorrow.
As you are using profiling attribute groups the DITAVAL should look like this:
so the filtering is done as if you directly set the attribute "publication" to that specific value in the XML.
https://www.oxygenxml.com/doc/versions/ ... roups.html
Regards,
Radu
I do not have time to test right now so if this does not work for you I can perform more tests tomorrow.
As you are using profiling attribute groups the DITAVAL should look like this:
Code: Select all
<prop action="include" att="publication" val="reference_book"/>
https://www.oxygenxml.com/doc/versions/ ... roups.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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)
- ↳ 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