# HG changeset patch # User cmlenz # Date 1174407641 0 # Node ID 342ca92098b517af7786f705e916974f42971d30 # Parent aa32588342ae3b87f100c2712977d7b3a3a9225d Template parsing passes the full path of the template to the XML parser so that it's included in parsing exceptions. diff --git a/genshi/template/markup.py b/genshi/template/markup.py --- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -83,7 +83,7 @@ include_href = None if not isinstance(source, Stream): - source = XMLParser(source, filename=self.filename, + source = XMLParser(source, filename=self.filepath, encoding=encoding) for kind, data, pos in source: