Help with conditional output using .ditaval
Posted: Tue Feb 23, 2010 12:19 am
I would like to use a filter to determine whether or not to include
an image in the output, depending on whether the output is pdf,
or .chm
I have a task topic (referenced by the ditamap) that contains a reference an image:
<image href="../Image/SearchClinical1900.jpg" product="chm"/>
Then, for the transformation scenario, I create new transformation scenario based on Idiom-FO. I select to use a filter using a ditaval
file. The file contains the following code:
<?xml version="1.0" encoding="UTF- 8"?>
<val>
<prop action="exclude" val="chm" att="product" />
</val>
I run the transformation, but the image still appears, regardless of the product attribute. I change:
<image href="../Image/SearchClinical1900.jpg" product="chm"/>
to
<image href="../Image/SearchClinical1900.jpg" product="pdf"/>
and the image still appears.
Am I setting up the condition correctly? Am I missing a step?
Most appreciative,
Allan
an image in the output, depending on whether the output is pdf,
or .chm
I have a task topic (referenced by the ditamap) that contains a reference an image:
<image href="../Image/SearchClinical1900.jpg" product="chm"/>
Then, for the transformation scenario, I create new transformation scenario based on Idiom-FO. I select to use a filter using a ditaval
file. The file contains the following code:
<?xml version="1.0" encoding="UTF- 8"?>
<val>
<prop action="exclude" val="chm" att="product" />
</val>
I run the transformation, but the image still appears, regardless of the product attribute. I change:
<image href="../Image/SearchClinical1900.jpg" product="chm"/>
to
<image href="../Image/SearchClinical1900.jpg" product="pdf"/>
and the image still appears.
Am I setting up the condition correctly? Am I missing a step?
Most appreciative,
Allan