From e712606d52f34624de04916107df2ba86b7c625a Mon Sep 17 00:00:00 2001 From: sebd <> Date: Wed, 26 Jan 2005 12:09:14 +0000 Subject: [PATCH] target file path from a catalog is allowed not to start with file:// --- src/core/elements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/elements.py b/src/core/elements.py index f0c9f8f..fdfed67 100644 --- a/src/core/elements.py +++ b/src/core/elements.py @@ -962,7 +962,7 @@ def registerElement(namespaceUri, elementName, elementClass = None, schemaLocati descriptionFileUri = libxml2.catalogResolveSystem(descriptionLocation) if descriptionFileUri is None: logs.debug("Missing description file '%s'." % descriptionLocation) - else: + elif descriptionFileUri.startswith("file://"): descriptionAbsolutePath = descriptionFileUri[len("file://"):] else: assert not descriptionLocation.startswith("/")