Extend XQXQ module functionality by exposing the prolog

Bug #956347 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Low
Juan Zacarias

Bug Description

adding the following two functions to the XQXQ module should allow for an arbitrary static context to be set up as required (e.g. declaring namespaces, enabling the hof option, ...).
Hence, it should not be required anymore to make changes to the original query.

 declare %ann:sequential function prepare-library-module(
 $library-module-text as xs:string,
         $prolog as xs:string ) as empty-sequence() external;

 and

 declare %ann:sequential  function prepare-main-module (
 $main-module-text as xs:string,
         $prolog as xs:string ) as xs:anyURI external;

 The $prolog parameter can be an arbitrary XQuery prolog that is used to
 populate the
 static context of the module to be compiled. To do this, the
 StaticContext::loadProlog
 function of the C++ API can be used.

Tags: xqxq
Changed in zorba:
assignee: Sorin Marian Nasoi (sorin.marian.nasoi) → Juan Zacarias (juan457)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.