[MarkLogic Dev General] cts:value-match $pattern parameter

Joe Bryan Joe.Bryan at marklogic.com
Tue Mar 24 13:30:29 PDT 2015

Hi Danny,

That pattern "worked" because of function mapping; cts:value-match was invoked twice, one for each pattern in the sequence. Disabling function mapping and invoking cts:value-match with multiple patterns results in XDMP-ARGTYPE.

I'm not sure how to represent a choice of patterns.



From: Danny Sinang <d.sinang at gmail.com<mailto:d.sinang at gmail.com>>
Reply-To: MarkLogic Developer Discussion <general at developer.marklogic.com<mailto:general at developer.marklogic.com>>
Date: Tuesday, March 24, 2015 at 4:25 PM
To: general <General at developer.marklogic.com<mailto:General at developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] cts:value-match $pattern parameter

Never mind.

This pattern worked :

("1", "5").

On Tue, Mar 24, 2015 at 4:22 PM, Danny Sinang <d.sinang at gmail.com<mailto:d.sinang at gmail.com>> wrote:
cts:value-match()<https://docs.marklogic.com/cts:value-match#pattern> apparently accepts a "$pattern" parameter.

It works if I specify a pattern of "1" and a pattern of "5" .

But how do I tell it to match values that are either "1" or "5".

I tried "1|5", "[1|5]", "1 or 5" but they don't work.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150324/85e63074/attachment.html 

More information about the General mailing list