Pretty Print: custom entity definitions

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
seanwhe
Posts: 27
Location: South Africa

Pretty Print: custom entity definitions

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: 277

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;

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 1 guest