subject scheme map not found in pdf transformation

Post here questions and problems related to editing and publishing DITA content.
jdonges
Posts: 8
Joined: Mon Dec 16, 2019 3:01 pm

subject scheme map not found in pdf transformation

Post by jdonges »

Hi

I am learning about subject scheme maps and ran into a problem.
I built the following example:
The ditamap file:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
    <title>Example</title>
    <mapref href="fset_subjectscheme.ditamap" format="ditamap"  processing-role="resource-only"/>
    
    <topicref href="fset.dita"/>
</map>
The topic fset.dita:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_npk_4n4_ywb">
    <title>Test</title>
    <shortdesc/>
    <conbody>
        <p>
            <ul id="ul_vrj_pn4_ywb">
                <li otherprops="prop1">1</li>
                <li otherprops="prop2">2</li>
                <li otherprops="prop3">3</li>
                <li otherprops="prop4">4</li>
                <li otherprops="prop5">5</li>
                <li otherprops="group_exclude">6</li>
                <li otherprops="group_include">7</li>
            </ul>
        </p>
    </conbody>
</concept>
The file fset_subjectscheme.ditamap

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subjectScheme PUBLIC "-//OASIS//DTD DITA Subject Scheme Map//EN" "subjectScheme.dtd"> 
<subjectScheme>
    <subjectdef keys="groupdemo">
        <subjectdef keys="group_include">
            <subjectdef keys="prop1"/>
            <subjectdef keys="prop2"/>
            <subjectdef keys="prop3"/>
        </subjectdef>
        <subjectdef keys="group_exclude">
            <subjectdef keys="prop4"/>
            <subjectdef keys="prop5"/>
        </subjectdef>   
    </subjectdef>
    <enumerationdef>
        <attributedef name="otherprops"/>
        <subjectdef keyref="groupdemo"/>
    </enumerationdef>
</subjectScheme>
And finally the ditaval file

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<val>
 
    <prop action="include" att="otherprops" val="group_include"/>
    <prop action="exclude" att="otherprops" val="group_exclude"/>    
</val>
I am expecting to only find the <li> 1 to 3 and 7 in the output. It works like expected in Oxygen Author mode but not in the PDF output.
Whenever I start the pdf-html5-css transformation and assign the ditaval file to it, the output has all bullet points and I get error messages
"No specified rule for 'otherprops=prop1' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'otherprops=prop1' in the ditaval file."

and like that for all attribute values I used. The pdf transformation seems to ignore the subject scheme but I dont understand why.
The log shows that the subject scheme map is at least found

Code: Select all


[filter] Processing file:/D:/filter/fset_subjectscheme.ditamap to file:/D:/filter/temp/pdf-css-html5/oxygen_dita_temp/fset_subjectscheme.ditamap
   [filter] Processing file:/D:/filter/fset.dita to file:/D:/filter/temp/pdf-css-html5/oxygen_dita_temp/fset.dita
   [filter] [DOTJ031I][INFO] No specified rule for 'otherprops=prop1' was found in the ditaval file. This value will use the default action, or a parent prop action if specified. To remove this message, you can specify a rule for 'otherprops=prop1' in the ditaval file.
   ...
I cannot find the error here and I am even more puzzled because ist is treated correctly in author mode.
What am I doing wrong?
Kind regards
Joern