HI Christopher

If a schema is having a schematron with in it. Is there any way we can validate 
both schema and schematron rules against an XML document at once?

Schema validation works fine to check the structure of the document but the 
inbuild schematron holds the data level complex validations which needs some 
investigation on how to validate.

Is there any default Out of the box solutions to validate against a schema with 
inbuilt schematron rules?

Regards,
Gnana(GP)

-----Original Message-----
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
general-requ...@developer.marklogic.com
Sent: 10 May 2016 20:00
To: general@developer.marklogic.com
Subject: General Digest, Vol 143, Issue 15

Send General mailing list submissions to
        general@developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        general-requ...@developer.marklogic.com

You can reach the person managing the list at
        general-ow...@developer.marklogic.com

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of General digest..."


Today's Topics:

   1. Re: Regarding compilation of schema for   validation.
      (Christopher Hamlin)
   2. Re: Need to copy more thatn 10k files in single transaction
      (Manoj)


----------------------------------------------------------------------

Message: 1
Date: Tue, 10 May 2016 10:40:03 -0400
From: Christopher Hamlin <cbham...@gmail.com>
Subject: Re: [MarkLogic Dev General] Regarding compilation of schema
        for     validation.
To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Message-ID:
        <CADX+0Qyi47-WYg16XZQ6-L24VkU-ieBE=ojsagphddd27bu...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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 <shabana.0...@gmail.com> 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
> <erik.hen...@marklogic.com>
> 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: general-boun...@developer.marklogic.com
>> [general-boun...@developer.marklogic.com] on behalf of shabana khan
>> [shabana.0...@gmail.com]
>> Sent: Monday, May 09, 2016 7:18 AM
>> To: General@developer.marklogic.com
>> 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
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>


------------------------------

Message: 2
Date: Tue, 10 May 2016 11:02:55 -0400
From: Manoj <manojjayara...@gmail.com>
Subject: Re: [MarkLogic Dev General] Need to copy more thatn 10k files
        in single transaction
To: MarkLogic Developer Discussion <general@developer.marklogic.com>
Message-ID:
        <cap3dmm9gn+8t8e5jws2kmjxu3odtkodszc3ptkb6uug4ng4...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

xdmp:spawn() will not support rollback/single transaction. If there is a 
failure I cannot rollback my changes done on some of the files which would have 
got updated in the DB.

On Tue, May 10, 2016 at 4:43 AM, Asit Nautiyal <asitnauti...@outlook.com>
wrote:

> Hi Manoj,
>
>
> Use xdmp:spawn() function.
>
>
> Regards,
>
> Asit Nautiyal
>
>
> ------------------------------
> *From:* general-boun...@developer.marklogic.com <
> general-boun...@developer.marklogic.com> on behalf of Manoj <
> manojjayara...@gmail.com>
> *Sent:* Wednesday, May 4, 2016 7:07 PM
> *To:* General MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Need to copy more thatn 10k files
> in single transaction
>
> Hi All,
>    I need to copy more than 10k files from one directory to another
> after updating certain parts of the files in a single transaction(with
> ability to rollback in case of any failure). What is the best way to do it.
> When I was trying for larger set of file using xdmp:invoke with
> isolation as 'same-statement' I faced timeouts in marklogic
>
>
> Thanks & Regards
> Manoj
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20160510/39eca03a/attachment-0001.html

------------------------------

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general


End of General Digest, Vol 143, Issue 15
****************************************
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to