Re: [MarkLogic Dev General] Multiple inserts, maintaining order

2012-09-24 Thread Dominic Beesley
Hi Michael, Thanks for looking, whole script attached. Is a variable set in an outer loop, so last child of $a/xm:meta should still evaluate at run time to the same thing. I suspect what is happening is that the updates are not committed in the same order that they are placed in the

[MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread Ryan Dew
This past weekend I played around with creating my own native plugin. I was able to compile and package my plugin just fine, making use of the example make file provided. I also ran plugin:install-from-zip and it returned 1 as expected. At this point, though,

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread John Snelson
On 24/09/12 14:07, Ryan Dew wrote: This past weekend I played around with creating my own native plugin. I was able to compile and package my plugin just fine, making use of the example make file provided. I also ran plugin:install-from-zip and it returned 1 as expected. At this point,

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread Ryan Dew
It may also help that I tried these steps with the sample native plugin provided and got the same results. Here is the info that you were asking for: Extensions DB: /native/regex-audf/libregex-audf.dylib /native/regex-audf/manifest.xml /native/sampleplugin/libsampleplugin.dylib

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread John Snelson
Try calling cts:aggregate() with a first argument of native/regex-audf. The scope you used when you installed the plugin (in this case native) needs to be included in the plugin name. John On 24/09/12 14:43, Ryan Dew wrote: It may also help that I tried these steps with the sample native

Re: [MarkLogic Dev General] Multiple inserts, maintaining order

2012-09-24 Thread Michael Blakeley
I'm sorry, but that example still has a couple of dependencies. There are database lookups that won't return anything for anyone but you, undeclared namespaces, and what looks like template substitution (bad stuff: use external variables instead). Here is what I mean by a working test case:

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread Ryan Dew
Thanks. I''ll have to try that when I get home tonight. On Sep 24, 2012 7:50 AM, John Snelson john.snel...@marklogic.com wrote: Try calling cts:aggregate() with a first argument of native/regex-audf. The scope you used when you installed the plugin (in this case native) needs to be included in

[MarkLogic Dev General] Condiational Validation in Schema

2012-09-24 Thread Gnanaprakash.Bodireddy
Hi Is it possible to include conditional validation in Schema. For example: Sample1: (Valid) root level type=skill lesson/ /level /root Sample2: (Invalid) root level type=section lesson/ /level /root In the above sample, I want to

Re: [MarkLogic Dev General] Condiational Validation in Schema

2012-09-24 Thread Will Thompson
I don't think that's possible using XML Schema. You might want to consider Schematron. -Will From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of gnanaprakash.bodire...@cognizant.com Sent: Monday, September 24, 2012 9:22 AM To:

Re: [MarkLogic Dev General] Native Plugins on OSX 10.8.2

2012-09-24 Thread Ryan Dew
Just to follow up, that worked. I should have caught that in the documentation. Thanks again! -Ryan Dew On Sep 24, 2012, at 9:04 AM, Ryan Dew ryan.j@gmail.com wrote: Thanks. I''ll have to try that when I get home tonight. On Sep 24, 2012 7:50 AM, John Snelson