Thank you for the answer.
First of all, Ben's message never reached me???. It was not in
the GMX spam folder, too. I have an mailfilter to
Betreff ist: oXygen-user post acknowledgement -> Trash , and
another one
An ist: oxygen-user@oxygenxml.com -> Oxygen folder,
but nothing more. Strange.
Your proposal I could manage, but I want: citation
without role="text" and citationT with role=text". The
respective scripts are clear to me. What is not clear is how to
call them?
Hi,
1. Yes, as Ben mentioned, you can indeed set a shortcut from the "Menu Shortcut Keys" page. You can use the filter to identify the action. if you do it like this, though, the shortcut wont be saved in the framework configuration so if you intend to distribute the framework it is better to edit the framework and set the shortcut on the action there [1].
2. Just edit the script behind the action (found inside docbook5-ext/actions/insertBiblioref.xsl) and change the inserted fragment:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://docbook.org/ns/docbook"
xmlns:jop="java:javax.swing.JOptionPane"
xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"
xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"
exclude-result-prefixes="#all"
version="2.0">
<xsl:template match="*"><!-- Java reflection to get input from the user. We intend to make it easier than this in a next version. -->
<xsl:variable name="target" select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()), 'Input target:', '')"/>
<citation role="text"><biblioref linkend="{$target}"/></citation>
</xsl:template>
</xsl:stylesheet>
[1] https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html
Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.comOn 10/17/2017 10:59 PM, Ben McGinnes wrote:
On Tue, Oct 17, 2017 at 03:40:02PM +0000, Bernhard Kleine wrote:Alex, thanks a lot. Two further questions: 1. Is it possible to assign a keyboard shortcut to "Citation"?You should be able to. You can add a shortcut for anything in the "Menu Shortcut Keys" in Preferences (I'm assuming that's called Options in Windows and Linux). I'm pretty sure that panel lists anything in the menus and which is added to the toolbars because I added external functions to load an open file in an external text editor and I was able to add hotkeys for that.2. I destinguish citation running with the text (role="text") and others? how could that be included?Not sure, I don't actually do that much with Docbook except when it's generated by something else, so it either works out of the box or it doesn't. Presumably Alex will be able to answer. Regards, Ben
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09