Page 1 of 1

XHive : Cannot use the document() fn in a non-XSLT context

Posted: Thu Feb 15, 2007 5:13 pm
by scourge
Hi,

I'm using X-Hive, and I am experienceing problems with XQuery validation in the Oxygen 8.1 Eclipse plugin. Weherever I use the fn:document() function, which for XHive is a valid function, I get the error in the subject line.

I guess this is an X-Hive specific extension function...

Can I get this to be accepted as valid somehow ? If not, Oxygen is not going to be very useful in X-Hive environments...

Thx
Philip

Posted: Thu Feb 15, 2007 5:56 pm
by scourge
It's ok already... I found the issue.

The error was flagged only in when executing the query since in the Transformation Scenario you have to specify the validation type separately again, and this was not set to my DB, but to Saxon (where the fn:document is an issue)

Posted: Thu Feb 15, 2007 6:20 pm
by sorin_ristache
Hello,

If you associated a transformation scenario with the XQuery file then the transformer set in the scenario is used also for validating the XQuery file. If you set the X-Hive connection in the scenario you should not get validation errors for functions specific to X-Hive.


Regards,
Sorin