openSUSE / dbxincluder

Transclusions for DocBook with XInclude 1.1
https://opensuse.github.io/dbxincluder
GNU General Public License v3.0
2 stars 3 forks source link

Entity problem with external file #30

Closed tomschr closed 8 years ago

tomschr commented 8 years ago

I've added three new testcase, all dealing with entities. The cases entity.case.xml and xinclude-with-entity.case.xml are ok; they both define their entities in the same file (either in the "main" or in the xincluded file).

However, the testcase xinclude-with-extentity.case.xml refers to an external file entity-decl.ent. This file contains the entity definitions. For some reason, this isn't possible, although it's correct XML.

Oh, by the way: executing dbxincluder with the respective file gives the following error:

$ dbxincluder tests/cases/xinclude-with-extentity.case.xml
Error at tests/cases/xinclude-with-extentity.case.xml:6: Could not parse 'tests/cases/xinclude3.xml': Entity 'bar' not defined, line 10, column 35

For some reasons, the file xinclude3.xml doesn't resolve the (externally definied) entity which results in the above error message.

@Vogtinator: Fabian, could you look into this issue next week? Thanks!