(Apologies for the repost, the mailing list appears to be the prefered means for dom4j user support)
Hi I have a document with an external entity: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"; [ <!ENTITY Contingency SYSTEM "components/hsos.contingency.persistence.Contingency.xml"> ] > So "components/" is a sub directory in the same directory this document is located in. According to RFC 2396 the base URI for the relative path for the external entity should fall back to the location of this document. This works fine validating the doucment with xmllint but when using dom4j it always tries to use "." as the base URI. How can this behaviour be changed/corrected? PS. I noticed that "." get's resolved, when I add some logging to Hibernate's EntityResolver implementation I see the following: [schemaexport] [main] WARN [] <> - publicId [null] systemId is: file:///develop/newcvstest/handson/components/hsos.contingency.persistence.Contingency.xml I saw this bug fixed in 1.5RC1: "Fixed bug in AbstractElementcausing Node.getPath(Element context)to return an absolute path, even if a the current element was the same as the context element. The relative path "." is now returned. Thanks to Rob Grzywinski ." I am using version 1.5 Thank you Peter ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user