Can Subject Scheme Create List of Values in an Element
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 48
- Joined: Sat Jan 26, 2013 6:07 pm
Can Subject Scheme Create List of Values in an Element
Post 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?
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?
-
- Posts: 9477
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Can Subject Scheme Create List of Values in an Element
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:
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
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>
Code: Select all
<keyword keyref="kw1"/>
A similar example is in the specs:
http://docs.oasis-open.org/dita/v1.2/cd ... eyref.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 48
- Joined: Sat Jan 26, 2013 6:07 pm
Re: Can Subject Scheme Create List of Values in an Element
Post 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.
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.
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service