subjectScheme for content completion

subjectScheme for content completion

Postby bcolborn » Tue Jun 12, 2012 3:41 am

I am interested in defining allowed attribute values using a subjectScheme map. Creating the map is easy enough. The documentation indicates that I can reference the subjectScheme map for content completion: http://www.oxygenxml.com/doc/ug-authorE ... e-map.html

Following the links from this topic hoping to learn how to specify the subjectScheme map, I end up here: http://www.oxygenxml.com/doc/ug-authorE ... ation.html

But that still leaves me in the dark about how to associate DITA document types with a particular subjectScheme map. Does anyone know how to do this? Or do I have it all wrong?

Ben
bcolborn
 
Posts: 2
Joined: Mon Feb 06, 2012 11:20 pm

Re: subjectScheme for content completion

Postby Radu » Tue Jun 12, 2012 9:06 am

Hi Ben,

A Subject Scheme Map is actually a DITA Map specialization.
Oxygen recognizes a DITA specialization on the fly so there is no need for you to create a document type definition for it.

Oxygen has new file templates for easily creating Subject Scheme Maps so if you use the New toolbar button and search for subject scheme you will be able to use the template to create and start editing a Subject Scheme map. The map should be edited in the main editor in the Text page. But from your post, I think you already know this.

Then, as the documentation you found states, the Subject Scheme Map needs to be referenced from your main DITA Map like:

Code: Select all
<topicref href="path/to/subjectScheme.ditamap" format="ditamap" type="subjectScheme"/>


This should be enough to show the values you have defined in the Subject Scheme map as proposals in the Attributes view when editing attributes for DITA elements.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 2014
Joined: Fri Jul 09, 2004 5:18 pm

Re: subjectScheme for content completion

Postby bcolborn » Tue Jun 12, 2012 8:14 pm

I gave it another try and it worked as expected. I think the subjectScheme map had an incorrect though valid attribute. One feature request would be for the profiling attributes to pick up relevant values from a subjectScheme map. Thanks for the response Radu.

Ben
bcolborn
 
Posts: 2
Joined: Mon Feb 06, 2012 11:20 pm

Re: subjectScheme for content completion

Postby Radu » Wed Jun 13, 2012 9:04 am

Hi Ben,

One feature request would be for the profiling attributes to pick up relevant values from a subjectScheme map.


Yes, we already have plans to implement this in a future version.
I'll update the forum thread when this happens.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 2014
Joined: Fri Jul 09, 2004 5:18 pm


Return to DITA

Who is online

Users browsing this forum: No registered users and 0 guests