Menu

#2 Handling Entities in Internal Subset

v1.0_(example)
open
nobody
5
2003-10-13
2003-10-13
No

Hello,

I like to manage entities in an external file so as to:
1. add a level of indirection and to make entities
2. make entities accessable to all documents in a project
3. reduce management

When I use:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML
V4.2//EN"
"http://www.oasis-
open.org/docbook/xml/4.2/docbookx.dtd"
[
<!ENTITY % entities SYSTEM "entities.ent">
%entities;
]>

But the editor saves this as:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML
V4.2//EN"
"http://www.oasis-
open.org/docbook/xml/4.2/docbookx.dtd"
[
<!ENTITY % entities SYSTEM "entities.ent">
%entities;
<!ENTITY blue "bluedots">
<!ENTITY chap1 SYSTEM "chap1.xml">
]>

blue and chap1 are entities declared in entities.ent. Yet
they are written/added to the Internal subset and the
original declaration pointing to entities.ent is left
untouched.

Can this be fixed?

Discussion