Hello, I haven't used Schematron in a while, but when I did, the final xslt was created using
http://www.schematron.com/implementation.html Regards, Christopher Hamlin On Tue, May 10, 2016 at 6:57 AM, shabana khan <[email protected]> wrote: > Hi Erik, > > Thanks for your input. > > The requirement is like we need to do 2-step validation : > 1. Validation against the schema which we have in place. > 2. Validation against the schematron. > > Currently it is being validated against the schema but it is not checking > for the schematron part present in the schema file. So, we are planning to > compile it into xslt and then validate the document. > > Thanks and Regards, > Shabana Khan > LinkedIn > > > > > On Tue, May 10, 2016 at 1:14 AM, Erik Hennum <[email protected]> > wrote: >> >> 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 >> > > > _______________________________________________ > 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
