Subject scheme map: Inc;lude/exclude works, flag doesn't
Posted: Tue Jan 22, 2013 12:04 pm
Hi
I'm using 14.1.
I can't explain the following behaviour. Is it a bug, or am I doing something wrong?
When I use a subject scheme map to exclude content, it works. When I use the same subject scheme map to flag content, it doesn't.
Here is my map:
Here is (part of) the subject scheme map:
The attribute "era" is a specialised props attribute, but I can reproduce the behaviour with the "platform" atribute, so specialisation doesn't seem to affect it.
Here is part of the serials_list.dita topic:
If I use the following DITAVAL filter:
then only the section marked with era="verity_lambert" appears (as expected).
If I use:
I get an identical rendering, because I have associated "verity_lambert" with "sixties" using the subject scheme map.
So far so good. In the full project, I have more "sixties" stories than "verity_lambert" stories, and it works as expected (i.e. sections tagged with the names of the other producers listed under "sixties" in the subject scheme map also appear).
Now if I use the following DITAVAL file:
all the paragraphs in sections tagged "verity_lambert" appear in red, which is what I want.
However, if I use:
then nothing appears in red. I don't understand why!
If I take part of my original topic:
and amend it to this:
then the filter:
will render the topic text in red.
I don't understand why the flag action differs from the include/exclude action.
Am I doing something wrong, or is it a bug/feature of the DITA-OT or oXygen?
Thanks
John Tait
I'm using 14.1.
I can't explain the following behaviour. Is it a bug, or am I doing something wrong?
When I use a subject scheme map to exclude content, it works. When I use the same subject scheme map to flag content, it doesn't.
Here is my map:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map chunk="by-document to-content">
<title>Test</title>
<topicref href="doctor_who_subject.ditamap" format="ditamap" type="subjectScheme"/>
<topicref href="serials_list.dita"/>
</map>
Code: Select all
<subjectdef keys="era_attributedef">
<subjectdef keys="producer">
<subjectdef keys="sixties">
<subjectdef keys="verity_lambert"/>
<subjectdef keys="john_wiles"/>
<subjectdef keys="innes_lloyd"/>
<subjectdef keys="peter_bryant"/>
<subjectdef keys="derrick_sherwin"/>
</subjectdef>
<subjectdef keys="seventies">
<subjectdef keys="barry_letts"/>
<subjectdef keys="philip_hinchcliff"/>
<subjectdef keys="graham_williams"/>
</subjectdef>
<subjectdef keys="eighties">
<subjectdef keys="john_nathan-turner"/>
</subjectdef>
</subjectdef>
</subjectdef>
...
<enumerationdef>
<attributedef name="era"/>
<subjectdef keyref="era_attributedef"/>
</enumerationdef>
...
Here is part of the serials_list.dita topic:
Code: Select all
<topic id="first_serials">
<title>List of Doctor Who serials</title>
<body>
<section doctor="First_Doctor" story="classic" era="verity_lambert">
<title>An Unearthly Child</title>
<p>Kidnapped!</p>
</section>
...
<section doctor="Seventh_Doctor" story="classic" era="john_nathan-turner">
<title>Survival</title>
<p>Ironically titled.</p>
</section>
...
</body>
</topic>
Code: Select all
<prop action="exclude" att="era"/>
<prop action="include" att="era" val="verity_lambert"/>
If I use:
Code: Select all
<prop action="exclude" att="era"/>
<prop action="include" att="era" val="sixties"/>
So far so good. In the full project, I have more "sixties" stories than "verity_lambert" stories, and it works as expected (i.e. sections tagged with the names of the other producers listed under "sixties" in the subject scheme map also appear).
Now if I use the following DITAVAL file:
Code: Select all
<prop action="flag" att="era" val="verity_lambert" color="red"/>
However, if I use:
Code: Select all
<prop action="flag" att="era" val="sixties" color="red"/>
If I take part of my original topic:
Code: Select all
<topic id="first_serials">
<title>List of Doctor Who serials</title>
<body>
<section doctor="First_Doctor" story="classic" era="verity_lambert">
<title>An Unearthly Child</title>
<p>Kidnapped!</p>
</section>
Code: Select all
<topic id="first_serials">
<title>List of Doctor Who serials</title>
<body>
<section doctor="First_Doctor" story="classic" era="sixties">
<title>An Unearthly Child</title>
<p>Kidnapped!</p>
</section>
Code: Select all
<prop action="flag" att="era" val="sixties" color="red"/>
I don't understand why the flag action differs from the include/exclude action.
Am I doing something wrong, or is it a bug/feature of the DITA-OT or oXygen?
Thanks
John Tait