Feature Requests item #2141068, was opened at 2008-10-01 22:42
Message generated for change (Settings changed) made by sjoerd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482471&aid=2141068&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Pathfinder - loader
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Loredana Afanasiev (lafanasi)
Assigned to: Jan Flokstra (jflokstra)
Summary: relative path to a DTD
Initial Comment:
Dear MonetDB/XQuery team,
When shredding a document that contains a document type declaration referring a
dtd file given by a relative path, MonetDB returns a "could not find the dtd
file" error.
For example, shredding a document that contains this declaration:
<!DOCTYPE handeling SYSTEM "handeling.dtd">,
generates this error:
MAPI = [EMAIL PROTECTED]:50000QUERY = let $path :=
"/scratch/PolitiekeData/PoliticalMashup/HAN"ERROR = !ERROR: I/O warning :
failed to load external entity "handeling.dtd" !ERROR: Start tag
expected, '<' not found
!ERROR: [shred_url]: 1 times inserted nil due to errors at tuples
[EMAIL PROTECTED]
!ERROR: [shred_url]: first error was:
!ERROR: shred_external_subset: WARNING: xmlParseDTD("handeling.dtd")
FAILED, NO ID/IDREF QUERIES
!ERROR: shred_external_subset: NOTE : maybe using absolute filenames
works, sorry!
!ERROR: CMDshred_url: operation failed.
Given a big collection of such documents, it is not pleasant/clean to change
the dtd file into an absolute path. It would be great if MonetDB would accept
relative dtd paths also.
Thank you for consideration,
l.
----------------------------------------------------------------------
Comment By: Loredana Afanasiev (lafanasi)
Date: 2008-11-02 20:57
Message:
Hi Stefan, JanF,
sorry for taking so long. I installed the "current" pf and it loaded my
collection without problems. Thank you a lot for implementing my request
promptly!
l.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2008-10-15 15:25
Message:
Loredana,
JanF just implemented the following in the "Current" development trunk of
pathfinder (CVS HEAD):
- implement request [ monetdb-Feature Requests-2141068 ] relative path to
a DTD
When an external DTD has to be loaded in the current version only
absolute
path's may be used. This new implementation allows to relative path for
external DTD;s. When a relative path is used the shredder will lookup
the
DTD relative to the location of the shredded xml document. The
implementation
also works when the xml document is a URL.
Could you please check, whether this fulfills your request, and report?
Thanks!
Stefan
----------------------------------------------------------------------
Comment By: Jan Flokstra (jflokstra)
Date: 2008-10-02 09:21
Message:
I remember I had a look at this problem before. I think the problem was
that libxml looks relative to the current directory and because we execute
from within the database server the concept of "./" does not work. Also a
problem is that DTD loading is performed in an 'automagic' way by libxml2
so you have to find out how to influence the search for dtd's in an
indirect way,
JanF.
----------------------------------------------------------------------
Comment By: Jan Flokstra (jflokstra)
Date: 2008-10-02 08:57
Message:
I remember I had a look at this problem before. I think the problem was
that libxml looks relative to the current directory and because we execute
from within the database server the concept of "./" does not work. Also a
problem is that DTD loading is performed in an 'automagic' way by libxml2
so you have to find out how to influence the search for dtd's in an
indirect way,
JanF.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2008-10-01 23:24
Message:
We rely on libxml2 to shred documents, and it could in fact be that libxml2
requires absolute paths (or actually URIs!) for DTDs.
Jan (F),
could check and comment?
Stefan
----------------------------------------------------------------------
Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-10-01 23:22
Message:
The document being shredded.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2008-10-01 22:58
Message:
Question: relative to what?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482471&aid=2141068&group_id=56967
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs