DITA Filtering

davdup
Posts: 17
Joined: Wed May 29, 2019 5:43 pm

DITA Filtering

Post by davdup » Tue Jun 25, 2019 1:30 pm

Hi!
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
attribute with a custom group of values like in the example below:

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(reference_book other_book)">
        <title>A</title>
        <glossentry id="Above_Ground_Marker" otherprops="publication(reference_book 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>