Passing XQuery parameters into a MarkLogic datasource

Having trouble installing Oxygen? Got a bug to report? Post it all here.
lizadaly
Posts: 2
Joined: Thu Jan 11, 2007 3:17 am

Passing XQuery parameters into a MarkLogic datasource

Post by lizadaly »

Using a transformation scenario with MarkLogic as the datasource, I'm trying to pass a parameter $id into my XQuery. The parameter is composed of numbers but should be treated as a string, and my XQuery has declared it as type xs:string:

Code: Select all

define variable $id  as xs:string external 

$id
When I pass in '0010000000' as my ID, I get:

Code: Select all

100000000
Is there a way for me to type the parameter, or otherwise indicate that the value is a string and not an integer?
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi,

Sorry for the delay
Indeed there were problems correctly interpreting the value of the parameter on MarkLogic.
We fixed the problem, letting the MarkLogic query processor decide the type of the passed parameter.
The fix will be included in the 8.1 maintenance release which will be released probably this month.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lizadaly
Posts: 2
Joined: Thu Jan 11, 2007 3:17 am

Post by lizadaly »

Thank you!
Post Reply