Pretty Print: custom entity definitions

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
seanwhe
Posts: 27
Joined: Sat Jul 19, 2003 10:42 am
Location: South Africa
Contact:

Pretty Print: custom entity definitions

Post by seanwhe » Thu Aug 21, 2003 12:15 pm

I want to share entity definitions across multiple Docbook documents. So I create a file and place all entity declarations inside, like this.

<!ENTITY myfile SYSTEM 'myfile.xml'>
<!ENTITY another_file SYSTEM 'another_file'>

In my root document I create the DOCTYPE declaration, like this.

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook 4.2 XML//EN" "http://www...."; [
<!ENTITY % global_entities SYSTEM "global.ent">
%global_entities;
]>

At this point Validation works, but if I touch Pretty Print it changes the DOCTYPE declaration, deleting the %global_entities; . After which validation cannot work.

Is it me, or is there a problem?
Sean Wheller
Technical Writer
sean@inwords.co.za
http://www.inwords.co.za

Dan
Posts: 385
Joined: Mon Feb 03, 2003 10:56 am

Post by Dan » Fri Aug 22, 2003 9:57 am

Yes, it is a problem. We will consider fixing this in the next release.

As a workaround I think you can create a new DTD, containing:

<!ENTITY %docbook SYSTEM "http:// ... docbook.dtd">
<!ENTITY % global_entities SYSTEM "global.ent">

%docbook;
%global_entities;

Post Reply