Hi, Shabana:
> We need to compile our XSD file into XSLT so that we can use a compiled
> version for validation
Is there a reason you can't use the MarkLogic builtin support for validating a
document
against an XSD?
If you insert an XML Schema into the schema database for your content database
and
restart the server, you should be able to validate documents against the schema
using
either an XQuery validate expression:
https://www.w3.org/TR/xquery-30/#id-validate
or the MarkLogic validate function:
http://docs.marklogic.com/xdmp:validate
The builtin validation will almost certainly be faster than an XSLT invocation.
The other question is whether your Schematron compiler supports compiling an
XSD.
Hoping that helps,
Erik Hennum
________________________________
From: [email protected]
[[email protected]] on behalf of shabana khan
[[email protected]]
Sent: Monday, May 09, 2016 7:18 AM
To: [email protected]
Subject: [MarkLogic Dev General] Regarding compilation of schema for validation.
Hi All,
We need to compile our XSD file into XSLT so that we can use a compiled version
for validation
When we use sch:compile-schema($schematron) and give schematron as input it
successfully generates the XSLT.
But we have as input an XSD which comprises both schematron part and schema
part like we do have pattern elements and schema elements as well.
We are getting errors :
sc:compile-schema($schematron) -- Invalid coercion
Can anyone give suggestion regarding this.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general