Pretty Print: custom entity definitions
Posted: 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?
<!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?