Page 1 of 1

Language Output

Posted: Fri Nov 25, 2011 6:40 pm
by raulrubio
Hello,

I'm gonna talk my case out to see if somebody can help me. First of all I'm using Oxygen 11 so I don“t know if this is possible using this version.

I have a Dita file with information y 2 languages (english and spanish)and what I'm trying to do is to generate an output with just one language information. The thing is that I don't know how to manage this case, perhaps I can create 2 concepts (one for each language) and then omit one concept in the transformation... or maybe is there other way..

Thanks!

Best Regards.

Re: Language Output

Posted: Mon Nov 28, 2011 11:02 am
by Radu
Hi Raul,

Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats.

Usually when having different paragraphs in different languages you have the following alternatives:

1) Have separate topics for each language.

2) Mark each paragraph with the xml:lang value corresponding the the specific language. This will instruct the DITA OT to treat content in those paragraph according to the specified language:

http://docs.oasis-open.org/dita/v1.1/OS ... llang.html

But:

The DITA OT has filtering capabilities but only for specific attributes:

http://docs.oasis-open.org/dita/v1.0/ar ... dproc.html

and xml:lang is not one of them. So you cannot filter based on the value of an xml:lang attribute but you can filter output based on the value of the audience attribute for example.
So on each paragraph you can set also the audience attribute to a specific value.

This is a link to a forum topic discussing in detail filtering content using the DITA OT:

http://www.oxygenxml.com/forum/post1931 ... ing#p19314

Regards,
Radu