[oXygen-user] DITA: @audience with two diffent values in one map

Radu Coravu radu_coravu at sync.ro
Tue Oct 4 00:53:39 CDT 2011


Dear Theun,

Usually profiling attributes are used for filtering content.

What I see in your case is that you want the same topic to be included 
twice in the DITA Map.
So in your case you must not set the "audience" to each topic reference 
in the DITA Map.
But inside the topic content you can (and probably did) set the 
"audience" attribute with the right values to those certain sub steps.

After this you have to create one DITAVAL filter file for the "expert" 
audience (which filters "novice") like:

> <?xml version="1.0" encoding="UTF-8"?>
> <val>
>   <prop action="exclude" att="audience" val="novice"/>
> </val>

and one DITAVAL filter file for the "novice" audience which filters 
"expert".

Oxygen has functionality in which it can automatically create the 
DITAVAL filters if you define profiling condition sets in the "Editor / 
Edit modes / Author / Profiling/Conditional Text" Preferences page.
This video demonstration covers it:

 > http://www.oxygenxml.com/demo/DITA_Profiling.html

This forum post covers profiling conditions in greater details and might 
be useful to you:

> http://www.oxygenxml.com/forum/post19310.html?hilit=ditaval#p19306


Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


On 10/4/2011 8:25 AM, Theun Fleer wrote:
> hi all,
>
> I made a DITA-map that refers twice to one and the same task. First with
> @audience = novice, secondly with @audience = expert.
> The topic has several elements (substeps) that are only applicable for
> "novice".
>
> map
> |
> |--topic topicref="topic.dita" audience="novice"
> |
> |--topic topicref="topic.dita" audience="expert"
>
> I want the topic to appear twice in the publication: the first occurence
> for novice, the second for expert. When I use DITA-OT with the settings
> above, I get the same topic twice, both instances showing no conditions
> at all, so both showing all elements. What am I doing wrong? Can DITA+OT
> do what I want?
>
> regards, Theun Fleer
>
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user




More information about the oXygen-user mailing list