Probably a silly question but I have been bit by this. Are the schemas imported by main.xsd using URL's which exist in the Schemas Database ? All dependant (included) schemas need to be accessable.
From: [email protected] [mailto:[email protected]] On Behalf Of Sergio Alejandro Salazar Gutierrez Sent: Thursday, June 27, 2013 5:49 PM To: [email protected] Subject: [MarkLogic Dev General] Validate XML using XSD file that import other XSDs 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
