
Hi Andreas, So you are using Oxygen 16.0, right? What I did to test was to edit the DITA document type association and define a new action which invokes "ro.sync.ecss.extensions.commons.operations.ShowElementDocumentationOperation" with the "URL pattern" parameter set to:
http://www.google.com/search?tbm=bks&q=${xpath_eval(name())}
Then I invoked the action when placing the caret in a DITA paragraph <p> element. The web browser was opened with the URL:
So it worked for me. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 5/22/2014 5:20 PM, Andreas Wagner wrote:
Hi Radu,
* Oxygen XML Editor Support (Radu Coravu) dixit [2014-05-22 16:05]:
The XPath value inside the xpath_eval method should not be surrounded by single quotes, it should be like:
The XPath processor obtains the value exactly as it is (Oxygen does not remove starting and ending quotes) and in your case it received the value as a single quoted literal string which was evaluated and returned as such.
I have just tried this now but the whole, unparsed string following "...q=" is passed on as the target url to the browse, so I end up at a google search for (literally):
${xpath_eval(ancestor-or-self::*:TEI/*:teiHeader/*:fileDesc/*:titleStmt/*:title[type="main"])}
I hope I am not expecting something to work that is not supposed to do so in the first place...?
Andreas