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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
scourge
Posts: 2
Joined: Thu Feb 15, 2007 5:08 pm

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

Post 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
scourge
Posts: 2
Joined: Thu Feb 15, 2007 5:08 pm

Post 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)
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
Post Reply