XMLStreamFilter duplicating ENTITY declaration
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)
-
Account Deleted -
Account Deleted Comment [2.](https://code.google.com/p/okapi/issues/detail?id=271#c2) originally posted by @ysavourel on 2012-08-28T18:47:55.000Z:
(just removing myself from the CC list to avoid duplicated emails)
-
Account Deleted Comment [3.](https://code.google.com/p/okapi/issues/detail?id=271#c3) originally posted by @fliden on 2012-08-28T18:51:59.000Z:
Yes, it's the same with the default xml config. Sorry I forgot to add that.
Fredrik
-
- changed status to resolved
No longer reproducible, seems like it's been fixed.
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=271#c1) originally posted by @ysavourel on 2012-08-28T18:31:07.000Z:
Can you attach the filter config with this ticket - or maybe the bug is the same even with the default xml config?
Jim