Hi Danny,

Answers
1) 
There are more documents with the same problem. I don't know how many. I
have to write a query to check all the content.

2) That query doesn't throw the XDMP-URI exception.

The result of this query is:
<li>/ReBIC/FBU/11/23/FBU_11_23_0823_solarfun-kader-1-
De-erven-Brenninkmeijer
-.xml</li>

As you can see, the name of URI has been splitted in 3 lines. Exactly at
the place of the Unicode character 0A (decimal 10).

I can also make a expression like this:
if
(fn:base-uri($lev4)="/ReBIC/FBU/11/23/FBU_11_23_0823_solarfun-kader-1-
De-erven-Brenninkmeijer
-.xml")
then (
        ...                             
) else ()

But when I run a query with:
xdmp:document-delete(
        fn:base-uri($lev4)
)

Then the query also throw the XDMP-URI exception.

Met vriendelijke groet,

Kind Regards,

Alex Alberts 
Reed Business Netherlands 

IT Development
Phone: +31 (0)20 - 515 9946 
E-mail: [email protected] 
www.reedbusiness.nl 

======================================

Date: Tue, 17 Nov 2009 10:42:01 -0800
From: Danny Sokolsky <[email protected]>
Subject: [MarkLogic Dev General] RE: Character "Paragraph Separator"
To: General Mark Logic Developer Discussion
        <[email protected]>
Message-ID:
        
<[email protected]>
Content-Type: text/plain; charset="us-ascii"

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: [email protected]
[mailto:[email protected]] On Behalf Of Alberts,
Alex (RB-NL)
Sent: Tuesday, November 17, 2009 7:30 AM
To: [email protected]
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-Brennink
meijer&#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:
[email protected]<mailto:[email protected]>
www.reedbusiness.nl<blocked::www.reedbusiness.nl>
======================================

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

------------------------------

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general


End of General Digest, Vol 65, Issue 43
***************************************
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to