2009/11/17 Alberts, Alex (RB-NL) <alex.albe...@reedbusiness.nl>:
> An XML document has been loaded into MarkLogic (at that time version
> 3.2-2) and in the filename there are some paragraph separator characters
> (line feed, &#10). Recent MarkLogic has been upgraded to version 4.1-3.
> Now there's an error when the function fn:doc() tries to get access to the
> document:
> [0.9-ml] XDMP-URI: (err:FODC0005)
> fn:doc("/ReBIC/FBU/11/23/FBU_11_23_0823_solarfun-kader-1-&#10;De-erven-B...")
> -- Invalid URI format:
> "/ReBIC/FBU/11/23/FBU_11_23_0823_solarfun-kader-1-&#10;De-erven-Brenninkmeijer&#10;-.xml"
>
> Query evaluated in ReBIC-PRD as 0.9-ml (cq v4.1-1)
>
> When I use the code below, then the query gives a result.
> for $lev4 in
> xdmp:directory-properties("/ReBIC/FBU/11/23/","1")//prop:properties
> return (
>     <li>{fn:base-uri($lev4)}</li>
> )
> Result (text):
> ...
> <li>/ReBIC/FBU/11/23/FBU_11_23_0823_Index.xml</li>
> <li>/ReBIC/FBU/11/23/FBU_11_23_0823_solarfun-kader-1-
> De-erven-Brenninkmeijer
> -.xml</li>
> <li>/ReBIC/FBU/11/23/FBU_11_23_0823_TECH25_INTRO.xml</li>
> ...
>
>
> How can I solve this problem?

how about:

replace(normalize-space($lev4), ' ', '')



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to