
Hello, When importing modules by using relative paths, Berkeley DB XML resolves them relative to the base URI. By default the base URI for a Berkeley DB XML database is the root of the default container: dbxml:/ We do not change the base URI as we have found out that this breaks the 'collection' function, as it also tries to resolve the specified collection relative to the base URI. As a result, to work around this problem you have to specify the imported module by using an absolute URL. So the import line should look like this: import module namespace AtomicXQuery="AtomicXQuery" at "file:///C:/Documents and Settings/BDB/AtomicXQuery.xquery"; Regards, Adrian Buza http://www.oxygenxml.com/ subbulakshmi.kumarasamy@wipro.com wrote:
Hi All,
I'm getting following error when trying to run the Xquery on dbxml using Berkeley
SystemID: C:\Documents and Settings\BDB\policy_1.xquery Description: javax.xml.transform.TransformerException: Error: Cannot read query content from C:\Program Files\Oxygen XML Editor 8.2/dbxml:/AtomicXQuery.xquery [err:XQST0059], <query>:2:1 (Error parsing an XQuery expression)
Xquery internally importing a xquery module called "AtomicXQuery.xquery"....... Part of xquery -------------- declare copy-namespaces no-preserve, no-inherit; import module namespace AtomicXQuery="AtomicXQuery" at "AtomicXQuery.xquery"; declare namespace SWF="SWF"; declare namespace SWM="SWM"; ..... ..... .....
But without importing the module(Defined all function from AtomicXQuery in the same file, same Xquery works fine.... (:import module namespace AtomicXQuery="AtomicXQuery" at "AtomicXQuery.xquery";:)
oXygen XML Editor version: 8.2 Berkeley DB XML version: 2.3.10
Is importing xquery module not suppoted in 8.2 version??? Any pointers on the root cause and solution for this problem would be great help......
Thanks in advance Lakshmi
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user