[MarkLogic Dev General] Newbie: Undefined function input()

Mary Holstege mary.holstege at marklogic.com
Tue Oct 7 07:32:03 PDT 2008


On Tue, 07 Oct 2008 06:36:13 -0700, Steve <steve.a.bennett at gmail.com>  
wrote:

> I'm new to MarkLogic and I am using the online 'Getting Started'
> documents to ease myself in.
>
> However I've come across a problem that I can't find the solution to.
> I'm trying to execute the following code:
>
> for $i in input() return document-uri($i)
>
> However, when running, I'm getting a '500 Internal Server Error':
>
> 500 Internal Server Error
>
> XDMP-UNDFUN: (err:XPST0017) Undefined function input()
> in /view.xqy, on line 9 [1.0-ml]
>
> [line 9 refers to the code above.]
>
>
> If anyone can shed some light on what I am doing wrong, I would be
> very grateful.
>
> Thanks
>
> Steve

The fn:input() function was removed between May 2003 (supported on ML 3.2
and previous) and the final XQuery 1.0 recommendation (supported on ML  
4.0).
If you execute this in 0.9-ml mode, it will work, but better is to start
training yourself to use fn:collection() as a replacement.

//Mary


More information about the General mailing list