Hi,

I have some schema files stored in the Schema database, there is one main
XSD and this particular schema import several XSD files. I'm importing the
main XSD file and then validate the XML against it:

xquery version "1.0-ml";
import schema "" at "/main.xsd";
let $node := fn:doc("/test.xml")
return validate strict {$node}

I'm using MarkLogic 6.0-2.1.

But, I'm getting the following error:
[1.0-ml] XDMP-VALIDATEBADTYPE: (err:XQDY0027) validate strict { $node } --
Invalid node type: @multi-part lexical value "no" invalid for expected type
#yes-no at fn:doc("/test.xml")ref[1]/alternatives/@multi-part using schema
"/main.xsd"

It seems that the main file is not importing the others XSD files.

Can you help me, please?

The validation is successful using Oxygen XML Editor 14.2.

Thank you,

Sergio Salazar
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to