Override sample DITA attribute values

Post here questions and problems related to editing and publishing DITA content.
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Override sample DITA attribute values

Post by chrizzbee »

Hi there

Is it possible to override the sample attribute values defined for audience, platform, product, props, otherprops and rev? Are those values (expert, novice, mac, solaris, etc.) stored somewhere so I can provide my own values for them?

The reason I ask is, we define and manage our metadata attributes and their values in a PLM system and want to use them with in the DITA documents as well. Ok, we might need some attribute specification there, but that's another issue. First I would like to know if it is possible to override these attribute values somehow and provide own ones.

Thanks a lot!

Best regards
Chris.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Override sample DITA attribute values

Post by Radu »

Hi Chris,

Sure, you can change the default profiling attribute values in the Preferences->Editor / Edit modes / Author / Profiling/Conditional Text page.

We have a video which covers DITA profiling here:

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

An alternative would be to define your profiling attributes in a Subject Scheme Map which is part of your DITA project:

http://www.oxygenxml.com/doc/ug-oxygen/ ... e-map.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Re: Override sample DITA attribute values

Post by chrizzbee »

Hi Radu

Thanks for your answers. The Subject Scheme Maps are indeed something to look into. The thing is, we pull your Oxygen during the build process of our software. That said, the profiling attributes are all pre-set with your default values. I am looking for an option now to change them in a post-process kind of a way, without touching them manually. I thought maybe these values are stored in some XML file somewhere I could overwrite with my own definitions.

Chris.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Override sample DITA attribute values

Post by Radu »

Hi Chris,

I don't quite understand this remark:
The thing is, we pull your Oxygen during the build process of our software.
Also, are you using the standalone Oxygen or the Oxygen Plugin for Eclipse?
About having some kind of XML configuration file, we have this concept of default options which can be shared and used when Oxygen starts:

http://www.oxygenxml.com/doc/ug-oxygen/ ... tions.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Re: Override sample DITA attribute values

Post by chrizzbee »

Sorry, should have mentioned: yes, we use the Eclipse version of Oxygen.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Override sample DITA attribute values

Post by Radu »

Hi Chris,

Then the link to the user's manual topic which discusses default options for the Oxygen Eclipse Plugin would be this one:

http://www.oxygenxml.com/doc/versions/1 ... tions.html

but using the Subject Scheme is indeed something which you could explore as an alternative.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Re: Override sample DITA attribute values

Post by chrizzbee »

Hi Radu

I figured it out how it works! Cool stuff with the global options. I created a preferences folder in the Oxy-DIR and copied the exported XML to this location.

Thanks for help!
Chris.
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Re: Override sample DITA attribute values

Post by chrizzbee »

Radu,

One other thing that goes in the same direction:
I would like to define all block elements to have automatic ID generation and would like to define this as default for my Eclipse-Oxy. Are the ID-options entries for DITA also configurable as global attributes to export?
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Override sample DITA attribute values

Post by Radu »

Hi,

If you were using Oxygen 16.1 or newer, in the OXYGEN_PLUGIN/frameworks/dita/resources folder there is a file called idGenerationDefaultOptions.xml.
Those defaults are used as long as the end user does not make any changes on his own to the DITA auto-generation options.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply