EPrints Technical Mailing List Archive

Message: #02003


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: [FIX] missing entities


On Thu, 2013-06-06 at 07:17 +1000, Matthew Kerwin wrote:
> Incidentally, I can see that our phrase files all start with:
> 
>     <!DOCTYPE phrases SYSTEM "entities.dtd">
>     
>     <epp:phrases xmlns="http://www.w3.org/1999/xhtml";
>             xmlns:epp="http://eprints.org/ep3/phrase";
>             xmlns:epc="http://eprints.org/ep3/control";>
>     ...
> 
> Can anyone briefly explain to me how the XML engine knows (or rather,
> _should_ know) that the "entities.dtd" actually refers to the file in
> eprints/lib/ ?  Should it be changed to an absolute path, or even a
> file:// URL?
> 

EPrints::XML::parse_file() specifies a base-path from which DTDs are
loaded. You can play around with this by using the 'xmllint' tool,
--path, --loaddtd.

-- 
All the best,
Tim

Attachment: signature.asc
Description: This is a digitally signed message part