ID Setting Extension for DITA Authoring

I'm using Author to create DITA documents that have nested topics. An annoyance is that topics require the id= attribute, so having inserted a nested topic, I then have to set the ID even though I don't really care what the ID is. My questions: 1. Is there already a sample Oxygen extension that assigns IDs that I can use or adapt for this? 2. If the answer to (1) is no, where should I look for guidance on how to implement such an extension. Thanks, Eliot ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hi Eliot, 1) The answer is no, but we are already considering adding an enhancement for automatic ID assignment when content is inserted in the Author. Of course, the tag names for which ID values will be automatically generated will be customizable. So when this gets done your problem will be solved, but in the meantime... 2) I created a sample operation for inserting a DITA Topic with an unique identifier. A jar file is attached containing both the operation class and its source so you can modify it. You have to edit the "DITA" document type, in the "Classpath" tab add your additional library and in the "Actions" table for the "insert.topic" action invoke your own custom operation in all XPath contexts. Then you can call the action from the toolbar, menus or with a shortcut and have topics with different ID's inserted on each invocation. Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Eliot Kimber wrote:
I'm using Author to create DITA documents that have nested topics. An annoyance is that topics require the id= attribute, so having inserted a nested topic, I then have to set the ID even though I don't really care what the ID is.
My questions:
1. Is there already a sample Oxygen extension that assigns IDs that I can use or adapt for this?
2. If the answer to (1) is no, where should I look for guidance on how to implement such an extension.
Thanks,
Eliot
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Eliot Kimber
-
Radu Coravu