Subject scheme keys invalidated by other keys

Post here questions and problems related to editing and publishing DITA content.
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Subject scheme keys invalidated by other keys

Post by urbanrobots »

Hi,
It looks like our company keys ditamap overrides any matching keys used in the subjectscheme ditamap.

Is it possible to build a subject scheme that does not use keys?

Thanks-
Nicholas
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Subject scheme keys invalidated by other keys

Post by Radu »

Hi Nicholas,

Imposing controlled attribute values via Subject Schemes only works with defining and referencing keys in the Subject Scheme map.
And indeed with the DITA 1.2 standard keys are considered globally defined so the first key defined with a certain name in any DITA Map will be the key definition which will be used for publishing.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Re: Subject scheme keys invalidated by other keys

Post by urbanrobots »

Hi Radu -
Okay, that's a bummer.

Do you know if we can define a key with a different value than what's being tested for in the subject scheme map?

For example, say we have a company key of "giraffe" and also use the the conditional attribute of product="giraffe" to condtionalize content specific to the giraffe product line. Could we somehow specify a different key in the subject scheme than "giraffe" but still have a controlled vocabulary with "giraffe" as an approved attribute for product?

Thanks for your time,
Nicholas
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Subject scheme keys invalidated by other keys

Post by Radu »

Hi Nicholas,

To my knowledge this is not possible.
Maybe instead of using the Subject Scheme map to control attribute values you could choose an Oxygen alternative via an XML configuration file:

http://blog.oxygenxml.com/2015/07/contr ... -your.html

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