Page 1 of 1

Subject scheme keys invalidated by other keys

Posted: Fri Sep 16, 2016 12:48 am
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

Re: Subject scheme keys invalidated by other keys

Posted: Fri Sep 16, 2016 9:12 am
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

Re: Subject scheme keys invalidated by other keys

Posted: Tue Sep 20, 2016 1:18 am
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

Re: Subject scheme keys invalidated by other keys

Posted: Tue Sep 20, 2016 8:31 am
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