Hi Michiel,
XMLSpy isn't happy with the html element --
Element <html> has no declaration for an attribute named 'vocab'.
Error location: html / @vocab
Details
VC: Attribute Value Type: Element <html> has no declaration for an
attribute named 'vocab'.
Did you supply the correct xsd? I note that your XQuery syntax states
"...wkb_group_resolved.xsd" but the file you supplied is only
"...wkb.xsd".
Regards,
rip
On Wed, Apr 8, 2015 at 8: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
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general