How to import LiveContent library modules in custom skin xql

The library module import statement from the Example/xql/skin_select.xql doesn't work in my custom skin.

import module namespace LiveContent-Pub="www.xyenterprise.com/.../pub" at   "../lib/pub.xql";

It returns the error message:

error found while loading module LiveContent-Pub: Module location hint URI '../lib/pub.xql does not refer to anything.

I call it with the url:

https://host.example.org/LiveContent/web/ui.xql?action=xquery&resource=my-xquery.xql&param1=value1&param2=value2

Using Livecontent 7.4.0.

I've tried all sorts of variations in the relative path pointing to the xql file, but haven't hit on one that works.

What is the base URI of the xql module that is being evaluated in this way?

 




Parents
  • Hello Paul,

    The relative URI that you have used is correct but ui.xql?action=xquery performs an eval and not all of the server lib XQL files can be called this way. A better approach may be to develop custom server web and lib files and execute your code from there. Can you give a few more details on the specific Use Case that you are trying to address and I can look to see how this can be addressed. If there is any client specific information that you don't want exposed to the community, please feel free to email me directly.

    Regards,
    Steve Layland

    Steve Layland | Senior Consultant | SDL

Reply
  • Hello Paul,

    The relative URI that you have used is correct but ui.xql?action=xquery performs an eval and not all of the server lib XQL files can be called this way. A better approach may be to develop custom server web and lib files and execute your code from there. Can you give a few more details on the specific Use Case that you are trying to address and I can look to see how this can be addressed. If there is any client specific information that you don't want exposed to the community, please feel free to email me directly.

    Regards,
    Steve Layland

    Steve Layland | Senior Consultant | SDL

Children
No Data