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.

Thanks.

-jb



From: Danny Sinang <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, March 24, 2015 at 4:25 PM
To: general 
<[email protected]<mailto:[email protected]>>
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 
<[email protected]<mailto:[email protected]>> 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.

Regards,
Danny


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to