othermeta name/content values
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 6
- Joined: Fri Apr 06, 2012 10:19 pm
othermeta name/content values
Is there a way to specify a list of selectable content values?
Plan to publish to a WIKI and use othermeta to specify the supported categories in the content field (want to avoid actually typing valid Wiki category values).
Plan to publish to a WIKI and use othermeta to specify the supported categories in the content field (want to avoid actually typing valid Wiki category values).
Know yourself first; help others know themselves
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: othermeta name/content values
Hi,
So you are referring to the othermeta DITA element:
http://docs.oasis-open.org/dita/v1.2/os ... #othermeta
Basically you have a couple of elegant ways and a hack (the hack being easier to implement).
1) Oxygen looks in the associated DTDs for such possible attribute values so if you would create a DITA specialization which would allow for the @content attribute a set of certain values, then Oxygen would propose them in the Attributes view.
2) You could use our Java Author SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK
and implement a ro.sync.contentcompletion.xml.SchemaManagerFilter interface which would allow you to provide extra values for the @attribute
3) You could create code templates in the Oxygen Preferences->Editor / Templates / Code Templates page for each <othermeta> element which you usually insert. Such code templates would then be available in the content completion window both in the Text and Author pages.
4) The hack would be to go to the Oxygen Preferences->Editor / Edit modes / Author / Profiling/Conditional Text and in the list of profiling attributes add a new entry matching DITA*, specifying content as the attribute name and a set of allowed values.
The list was not intended for this but the content completion in the Attributes View would propose these values when editing the specific attribute.
Regards,
Radu
So you are referring to the othermeta DITA element:
http://docs.oasis-open.org/dita/v1.2/os ... #othermeta
Basically you have a couple of elegant ways and a hack (the hack being easier to implement).
1) Oxygen looks in the associated DTDs for such possible attribute values so if you would create a DITA specialization which would allow for the @content attribute a set of certain values, then Oxygen would propose them in the Attributes view.
2) You could use our Java Author SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... horing_SDK
and implement a ro.sync.contentcompletion.xml.SchemaManagerFilter interface which would allow you to provide extra values for the @attribute
3) You could create code templates in the Oxygen Preferences->Editor / Templates / Code Templates page for each <othermeta> element which you usually insert. Such code templates would then be available in the content completion window both in the Text and Author pages.
4) The hack would be to go to the Oxygen Preferences->Editor / Edit modes / Author / Profiling/Conditional Text and in the list of profiling attributes add a new entry matching DITA*, specifying content as the attribute name and a set of allowed values.
The list was not intended for this but the content completion in the Attributes View would propose these values when editing the specific attribute.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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)
- ↳ 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