Permalink
Browse files

Fix bug where same document references in file: URIs were being handl…

…ed incorrectly
  • Loading branch information...
ndw committed Sep 11, 2014
1 parent 761317a commit 5e3617c1748428a4746dcfc3e5e1bc4acae091cb
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/com/xmlcalabash/io/ReadableDocument.java
@@ -136,9 +136,10 @@ protected void readDoc() {
readDoc = true;
if (uri != null) {
try {
boolean sameDocumentReference = uri.startsWith("#");
// What if this is a directory?
URI baseURI = URI.create(base);
if ("file".equalsIgnoreCase(baseURI.resolve(uri).getScheme())) {
if (!sameDocumentReference && "file".equalsIgnoreCase(baseURI.resolve(uri).getScheme())) {
final DataStore store = runtime.getDataStore();
store.infoEntry(uri, base, "*/*", new DataInfo() {
public void list(URI id, String media, long lastModified)

0 comments on commit 5e3617c

Please sign in to comment.