Add Insert Editor Variable to XInclude dialog
Are you missing a feature? Request its implementation here.
-
- Posts: 72
- Joined: Thu Mar 26, 2015 4:57 pm
Add Insert Editor Variable to XInclude dialog
Post by steve.cuzner »
We have set up variables so that writers can select the variable to point to targetsets in the docbook olink dialog and it works very well. Could the xinclude dialog be enhanced so that the Insert Editor Variable is available to writers when they want to include an xinclude. We save our cross product boilerplate xincluded in a central location, so this would be helpful.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add Insert Editor Variable to XInclude dialog
Hi Steve,
Sorry but I do not understand.
About your first remark:
Regards,
Radu
Sorry but I do not understand.
About your first remark:
How exactly does that variable look like? Does it become part of the xi:include @href attribute value after the insert xi:include dialog is used? Is it resolved through the XML catalog support you set up?We have set up variables so that writers can select the variable to point to targetsets in the docbook olink dialog and it works very well.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 72
- Joined: Thu Mar 26, 2015 4:57 pm
Re: Add Insert Editor Variable to XInclude dialog
Post by steve.cuzner »
In our project files we have something like the following
In the insert OLink dialog the writer can select the Insert Editor Variables next to the Targetset URL filed and insert ${targetset}. This allows quick setting of the URL without have to use the browse button or remember the number of .. components.
In the case of XIncludes, if all or many of my xinclude object are in ${pdu}/../../../../boilerplate, if I could define that location in a variable, the writer would only have to include ${boilerplate}/file.xml. In our case, because we have our boilerplate in a single file and use the targetptr feature to point to a specifig point within, we would set ${boilerplate} to the actula xml file.
Does that help?
Steve
Code: Select all
<String>user.defined.editor.variables</String>
<userEditorVariable-array>
<userEditorVariable>
<field name="name">
<String>${targetset}</String>
</field>
<field name="value">
<String>${pdu}/../../../../someproduct/targetset.xml</String>
</field>
<field name="shortDescription">
<String>Available link targets for this product</String>
</field>
</userEditorVariable>
</userEditorVariable-array>
In the case of XIncludes, if all or many of my xinclude object are in ${pdu}/../../../../boilerplate, if I could define that location in a variable, the writer would only have to include ${boilerplate}/file.xml. In our case, because we have our boilerplate in a single file and use the targetptr feature to point to a specifig point within, we would set ${boilerplate} to the actula xml file.
Does that help?
Steve
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add Insert Editor Variable to XInclude dialog
Hi Steve,
Honestly I'm not sure why we added that button to use editor variables in the "Insert OLink" dialog.
We usually add such editor variables chooser buttons in places where the value composed using the editor variable is preserved in the Oxygen Preferences or in a framework customization. For example in a framework configuration you have references to the CSSs used for editing using editor variables which are automatically expanded when Oxygen looks for the CSSs.
So we'll probably not add the button to insert editor variables in the "Insert XInclude" dialog.
We do have APIs which would allow you to add an additional action to the drop-down button used for browsing various sources to locate the target file:
PluginWorkspace.addInputURLChooserCustomizer(InputURLChooserCustomizer)
As an example for what I mean I added a new sample Javascript-based plugin called urlChooserActionsProvider here:
https://github.com/oxygenxml/wsaccess-j ... le-plugins
Regards,
Radu
Honestly I'm not sure why we added that button to use editor variables in the "Insert OLink" dialog.
We usually add such editor variables chooser buttons in places where the value composed using the editor variable is preserved in the Oxygen Preferences or in a framework customization. For example in a framework configuration you have references to the CSSs used for editing using editor variables which are automatically expanded when Oxygen looks for the CSSs.
So we'll probably not add the button to insert editor variables in the "Insert XInclude" dialog.
We do have APIs which would allow you to add an additional action to the drop-down button used for browsing various sources to locate the target file:
PluginWorkspace.addInputURLChooserCustomizer(InputURLChooserCustomizer)
As an example for what I mean I added a new sample Javascript-based plugin called urlChooserActionsProvider here:
https://github.com/oxygenxml/wsaccess-j ... le-plugins
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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