On Tue, 09 Dec 2014 12:42:29 -0800, Will Thompson
<[email protected]> wrote:
> I recently ran into some issues validating a no-namespace document. The
> schema was updated, which should have caused the document to fail
> validation, but it didn't. I have been using
> xdmp:expanded-tree-cache-clear() following schema updates, but neither
> that nor a server restart had any affect.
>
> After doing some more testing, I discovered that dereferencing it before
> validation works:
>
> validate strict { document { doc($uri) }/* }
>
> And if I namespace the document and schema, everything works as expected
> as well. Bug, or am I missing something? This is on 7.0-4.1.
>
> -Will
Yes, this sounds like a bug, and probably is not related to schema change
so much as schema processing in general, since you cleared the cache.
(Correct me if I am wrong.)
Namespaced and no-namespaced schemas should work consistently.
That said, nonamespaced schemas are a little trickier because of the
interaction with elementForm and attributeForm, so I wouldn't be too
shocked if there a code path somewhere that doesn't handle things
properly.
If you have a test case you'd be willing to share, I'd love to see it.
//Mary
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general