[MarkLogic Dev General] RE: Character "Paragraph Separator"

Danny Sokolsky Danny.Sokolsky at marklogic.com
Tue Nov 17 10:42:01 PST 2009


Hi Alex,

I have two questions.


1)      Do you have only one document with this issue or are there many?

2)      Does the following query throw the XDMP-URI exception too?:

for $lev4 in xdmp:directory-properties("/ReBIC/FBU/11/23/","1")//prop:properties
return (
    <li>{fn:base-uri($lev4)}</li>,
    fn:doc(xdmp:node-uri($lev4))
)

-Danny

From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Alberts, Alex (RB-NL)
Sent: Tuesday, November 17, 2009 7:30 AM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] Character "Paragraph Separator"

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?


Met vriendelijke groet,

Kind Regards,

Alex Alberts
Reed Business Netherlands

IT Development
Phone: +31 (0)20 - 515 9946
E-mail: alex.alberts at reedbusiness.nl<mailto:alex.alberts at reedbusiness.nl>
www.reedbusiness.nl<blocked::www.reedbusiness.nl>
======================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20091117/0951bcf6/attachment.html


More information about the General mailing list