Author Mode "XQueryOperation" and eXist
Issues related to W3C XQuery.
Author Mode "XQueryOperation" and eXist
Hello,
I have problems to use the operation "XQueryOperation" in the Author mode. The content of the parameter script uses an eXist database module, the module for performing HTTP requests as a client (http://exist-db.org:8098/exist/apps/fun ... ientModule). The parameters sourceLocation, targetLocation and caretPosition are not defined. I receive the following message if I use the action in the Author mode.
The script is a request for tei-conform data in a specific zotero library. Unfortunately, the library is private, that's why I decoded the zotero group ID ("<groupID>") and the key ("<key>") in this message. The XQuery script works correctly if the file is a resource on the eXist server or stored on my computer.
Here is a snippet of the output:
I configured eXist as main validator for XQuery files as it is described here: http://www.oxygenxml.com/xml_editor/eXist_support.html
The oXygen version is 16.1 and the eXist version 2.1.
Do you have some hints?
Regards,
Franziska
I have problems to use the operation "XQueryOperation" in the Author mode. The content of the parameter script uses an eXist database module, the module for performing HTTP requests as a client (http://exist-db.org:8098/exist/apps/fun ... ientModule). The parameters sourceLocation, targetLocation and caretPosition are not defined. I receive the following message if I use the action in the Author mode.
Code: Select all
"Couldn't execute operation: 'ro.sync.ecss.extensions.commons.operations.XQueryOperation' for action: 'ExampleAction' because of: Cannot create a transformer from the provided script:
xquery version "3.0";
declare namespace httpclient="http://exist-db.org/xquery/httpclient";
declare namespace tei="http://www.tei-c.org/ns/1.0";
let $url := "https://api.zotero.org/groups/<groupID>/items?format=tei&v=3&key=<key>"
let $data := httpclient:get($url, true(), ())
return $data//tei:title
Reason:F XPST0017: Cannot find a matching 3-argument function named {http://exist-db.org/xquery/httpclient}get() at line 5"
Here is a snippet of the output:
Code: Select all
<title xmlns="http://www.tei-c.org/ns/1.0" level="m">Dictionary of .../title>
<title xmlns="http://www.tei-c.org/ns/1.0" level="m">Namenarten in ...</title>
The oXygen version is 16.1 and the eXist version 2.1.
Do you have some hints?
Regards,
Franziska
Re: Author Mode "XQueryOperation" and eXist
Hi,
I'm afraid you can't use XQueryOperation with eXist XQuery. The XQuery engine is not configurable for this operation, it simply uses the Oxygen built-in Saxon XQuery engine.
Regards,
Adrian
I'm afraid you can't use XQueryOperation with eXist XQuery. The XQuery engine is not configurable for this operation, it simply uses the Oxygen built-in Saxon XQuery engine.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Author Mode "XQueryOperation" and eXist
Hi,
As a workaround, why don't you use the XQuery function doc directly to load the XML from the HTTP server?
Regards,
Radu
As a workaround, why don't you use the XQuery function doc directly to load the XML from the HTTP server?
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