Using custom ID generation in document template
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 40
- Joined: Wed Jan 29, 2014 4:30 pm
Using custom ID generation in document template
If a document template uses the ${id} variable, the ID value is generated when a new document is based on that template.
Is it possible to call a custom ID generation ?
I tried by replacing
with
but it does not work.
Note: com.mycompany.oxygen.MyGenerateIDsOperation is defined as an action in my custom framework and is working OK from the menu.
Pascale
Is it possible to call a custom ID generation ?
I tried by replacing
Code: Select all
<topic id=${id}>
Code: Select all
<topic id=${com.mycompany.oxygen.MyGenerateIDsOperation}>
Note: com.mycompany.oxygen.MyGenerateIDsOperation is defined as an action in my custom framework and is working OK from the menu.
Pascale
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Using custom ID generation in document template
Post by alex_jitianu »
Hello,
We currently do not support custom editor variables, so you cannot plug your own ID generation mechanism using only the editor variables support. We added an internal issue to add support for this kind of custom editor variables, and we will notify you once it will be implemented. But maybe you can resolve the ID generation by using a combination of our default editor variables. A list is available at [5].
Meanwhile you will have to use our Java API [1] to set the ID attribute. You can get a notification when a document is opened with [2] (framework level API) or [3],[4] (plugin level API).
[1] http://oxygenxml.com/doc/ug-editor/#top ... a-api.html
[2] http://oxygenxml.com/doc/ug-editor/topi ... tener.html
[3] http://oxygenxml.com/doc/ug-editor/#con ... lugin.html
[4] http://www.oxygenxml.com/InstData/Edito ... ,%20int%29
[5] http://oxygenxml.com/doc/ug-editor/#top ... ables.html
Best regards,
Alex
We currently do not support custom editor variables, so you cannot plug your own ID generation mechanism using only the editor variables support. We added an internal issue to add support for this kind of custom editor variables, and we will notify you once it will be implemented. But maybe you can resolve the ID generation by using a combination of our default editor variables. A list is available at [5].
Meanwhile you will have to use our Java API [1] to set the ID attribute. You can get a notification when a document is opened with [2] (framework level API) or [3],[4] (plugin level API).
[1] http://oxygenxml.com/doc/ug-editor/#top ... a-api.html
[2] http://oxygenxml.com/doc/ug-editor/topi ... tener.html
[3] http://oxygenxml.com/doc/ug-editor/#con ... lugin.html
[4] http://www.oxygenxml.com/InstData/Edito ... ,%20int%29
[5] http://oxygenxml.com/doc/ug-editor/#top ... ables.html
Best regards,
Alex
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Using custom ID generation in document template
Hi,
Just to update this thread, Oxygen 16.1 has this new Java API which can resolve any custom editor variable:
ro.sync.exml.workspace.api.util.UtilAccess.addCustomEditorVariablesResolver
Regards,
Radu
Just to update this thread, Oxygen 16.1 has this new Java API which can resolve any custom editor variable:
ro.sync.exml.workspace.api.util.UtilAccess.addCustomEditorVariablesResolver
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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