Hi Gary,

Cut-n-paste of your code below into CQ works just fine with me. Could there be 
some other typo close by in your code?

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens Gary Larsen
Verzonden: woensdag 27 juli 2011 18:16
Aan: 'General MarkLogic Developer Discussion'
Onderwerp: Re: [MarkLogic Dev General] syntax querstion

HI Dave,

Nope - that was a transcribe error.  This still errors:

cts:element-query((xs:QName('ele1'),xs:QName('ele2')),cts:and-query(()))

gary

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
 On Behalf Of Lee, David
Sent: Wednesday, July 27, 2011 12:06 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] syntax querstion

Missing a quote ?
cts:element-query((xs:QName(ele1),xs:QName('ele2')),cts:and-query(())),

vs
cts:element-query((xs:QName('ele1'),xs:QName('ele2')),cts:and-query(())),


???



----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224

From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
 On Behalf Of Gary Larsen
Sent: Wednesday, July 27, 2011 12:10 PM
To: 'General MarkLogic Developer Discussion'
Subject: [MarkLogic Dev General] syntax querstion

One more...  I can't figure out the syntax to specific multiple QName in a 
function parameter:

cts:element-query(


$element-name as xs:QName*,


$query as cts:query

)  as   cts:element-query


This get me: Unexpected token syntax error, unexpected QName_, expecting Comma_ 
or Rpar_

cts:element-query((xs:QName(ele1),xs:QName('ele2')),cts:and-query(())),

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

Reply via email to