XMLStreamFilter duplicating ENTITY declaration

Issue #271 resolved
Former user created an issue

Original [issue 271](https://code.google.com/p/okapi/issues/detail?id=271) created by @fliden on 2012-08-28T17:39:12.000Z:

One of our Engineers reported the following. When running this XML snippet through the XMLStreamFilter:

<?xml version="1.0" encoding="utf-8"?> <?xml-model href="http://www.docbook.org/xml/5.0/rng/docbookxi.rng" schematypens="http://relaxng.org/ns/structure/1.0"?> <!DOCTYPE section [ <!ENTITY % VoceraEntities SYSTEM "file:/en/xml/shared/rsrc/text/vocera.ent" > %VoceraEntities; ]>

The ENTITY declaration is duplicated:

<?xml version="1.0" encoding="utf-8"?> <?xml-model href="http://www.docbook.org/xml/5.0/rng/docbookxi.rng" schematypens="http://relaxng.org/ns/structure/1.0"?> <!DOCTYPE section [ <!ENTITY % VoceraEntities SYSTEM "file:/en/xml/shared/rsrc/text/vocera.ent" > %VoceraEntities; ]><!ENTITY % VoceraEntities SYSTEM "file:/en/xml/shared/rsrc/text/vocera.ent" >

<section xml:id="SetupChecklist" version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> </section>

Unless the declaration is invalid or there's some way to configure it, it looks like a possible bug. Nothing too urgent though.

Comments (4)

  1. Log in to comment