Page 1 of 1
Can Subject Scheme Create List of Values in an Element
Posted: Wed May 29, 2013 10:46 pm
by mstrubberg
I see how Subject Scheme is used to create a use defined list of ATTRIBUTE values for an existing DITA attribute. Works well in Oxygen. - - cool
Can Subject Scheme be used to create a defined vocabulary list of values that will populate text within an ELEMENT tags (at processing) like a keydef and keyword pair does?
Can Subject Scheme be used to create a user defined list of values that an author can choose from that will populate <map><topicmeta>keywords>keyword between the keyword tags where in output the keyword element text displays in the Dublin Core html metadata tag?
Re: Can Subject Scheme Create List of Values in an Element
Posted: Thu May 30, 2013 9:13 am
by Radu
Hi,
Subject scheme maps can be used to control only metadata attribute values (ant not element text values):
http://docs.oasis-open.org/dita/v1.2/os ... jectSchema
In Oxygen 15.0 we'll have more features related to this possibility of subject schemes controlling values for a certain attribute. For example we'll report validation problems when a certain attribute value does not comply to the subject scheme. You will also be able to specify values for the profiling attributes directly in the Subject Scheme map.
But what you actually seem to want is to have controlled text values for certain elements. Subject schemes cannot provide this.
But why don't you use
<keyword keyref> instead? You would define the keys in the DITA Map like:
Code: Select all
<keydef keys="kw1">
<topicmeta>
<keywords>
<keyword>Keyword1</keyword>
</keywords>
</topicmeta>
</keydef>
and then reference from the topic like:
.
A similar example is in the specs:
http://docs.oasis-open.org/dita/v1.2/cd ... eyref.html
Regards,
Radu
Re: Can Subject Scheme Create List of Values in an Element
Posted: Thu May 30, 2013 4:05 pm
by mstrubberg
Radu,
Thanks for the information. I didn't think subject scheme would work to create a list of values that would then generate text at processing inside element tags that would then link to DC html tags.
I was successful in doing this with the keyword approach and it was easy to implement. I just needed to verify subject scheme wasn't intended for this use - - thought it works well to create custom user-defined attribute values.