It sounds like bug. Please report it. //Mary
On Apr 8, 2015 5:19 AM, Vanhoutte Michiel <[email protected]> wrote: Hi, In attachment the following documents: mnrs6108899.xml xhtml5-ml-wkb.xsd semantics.xsd If I validate this document ‘mnrs6108899.xml’ outside MarkLogic with ‘Eclipse’ or ‘XMLStarlet’, I get correctly an error message that on line 943 a ‘div’ element is not allowed in a ‘p’ element according to the schema. If I do this validation in MarkLogic using the construct: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> xquery version "1.0-ml"; declare namespace html = "http://www.w3.org/1999/xhtml"; import schema "http://www.w3.org/1999/xhtml" at "xhtml5-ml-wkb_group_resolved.xsd" ; import schema "http://marklogic.com/semantics" at "semantics.xsd" ; xdmp:validate( doc('mnrs6108899.xml') , 'strict' ) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I get no validation errors: <xdmp:validation-errors xmlns:xdmp="http://marklogic.com/xdmp"> </xdmp:validation-errors> Does this mean MarkLogic does not fully support XML schema validation? I’m sure that the document instance and schemas are loaded correctly because: - if I change the ‘body’ element to ‘bodyX’ both in the schema and the instance => I get no error as expected - if I only change the ‘body’ element to ‘bodyX’ in the schema or the instance => I get an error as expected Kind regards, Michiel ------------------------------ Michiel Vanhoutte Wolters Kluwer Belgium
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
