On 02/23/2012 04:32 PM, Orahood, Andy wrote:
> I have a mechanism in my files to replace the default title when the correct
> audience is applied, that works like this:
>
> <topic id="kbdoc">
> <title id="default">test default title</title>
> <prolog>
> <data audience="ose">
> <title conref="#kbdoc/default" conaction="pushreplace">test OSE
> title</title>
> </data>
> <data audience="sakai">
> <title conref="#kbdoc/default" conaction="pushreplace">test Sakai
> title</title>
> </data>
> </prolog>
>
> When I run this transformation, even when I have a ditaval that sets the
> default action for conditional processing attribute "audience" to "exclude",
> the conref is done for both the "ose" title and the "sakai" title, and
> finally the "sakai" title is left in place of the default one. This is not
> how the Open Toolkit behaves, nor how I would expect ditac to handle
> filtering of conref content. I would expect that if the alternate titles are
> filtered out then the conref should not be processed. Only if I use a ditaval
> that makes the content in the data container for "ose" or for "sakai" visible
> should the conref be processed.
>
This is obviously a bug, but we cannot fix it without a major rewrite of
ditac. (Conditional processing is performed by ditac after conref
processing.)
I would suggest this (may be naive) alternative:
<topic id="kbdoc">
<title><ph audience="default">test default title</ph>
<ph audience="ose">test OSE title</ph>
<ph audience="sakai">test Sakai title</ph></title>
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support