Split documents via entities
Posted: Wed Apr 21, 2004 8:47 am
Hi,
actually the new version of oxygen looks nice - good work
However, oxygen is not very useful for editing "large" documents, which are split via entities.
I.e., if one writes a longer document e.g. a docBOOK, one probably separates all chapters
into single files and "binds" them together via a main.dbk using Entities. However since
oxygen does not let one assign "meta-information" to a file (e.g. via project properties),
oxygen has no clue when one edits the "chapter" files ...
One example (file sendmail.dbk):
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
[
<!ENTITY % links SYSTEM "links.xml">
<!ENTITY % locallinks SYSTEM "locallinks.xml">
<!ENTITY chapter-install SYSTEM "./install.dbk">
<!ENTITY chapter-mailrouting SYSTEM "./mailrouting.dbk">
<!ENTITY chapter-config SYSTEM "./config.dbk">
<!ENTITY chapter-antispam SYSTEM "./antispam.dbk">
%links;
%locallinks;
]
>
<book lang="de" id="sendmail_workshop">
<title>Sendmail in der Praxis</title>
<subtitle>Workshop: Magdeburger Linuxtag 2003</subtitle>
...
&chapter-install;
&chapter-mailrouting;
&chapter-config;
&chapter-antispam;
</book>
and e.g. a chapter file (install.dbk) would look like:
<?xml version="1.0" encoding="iso-8859-1"?>
<chapter id="install">
<title>Sendmail Installation</title>
...
</chapter>
<!--
Local Variables:
mode: xml
sgml-parent-document: ("sendmail.dbk" "book" "chapter")
sgml-indent-step: 2
tab-width: 2
sgml-indent-data: 1
End:
-->
With emacs (psgml mode) editing the chapter file is no problem, since it uses the comment
at the end of the document to find the parent document of the file as well as the root
aka context element for the document, and the "element container" of the current file.
It even allows a 4th argument (has-seen) . For more information see
http://www.xemacs.org/Documentation/pac ... .html#SEC9
It would be really helpful to have a similar feature like the emacs psgml sgml-parent-document variable in oxygen, too.
What do you think ?
Regards,
actually the new version of oxygen looks nice - good work

However, oxygen is not very useful for editing "large" documents, which are split via entities.
I.e., if one writes a longer document e.g. a docBOOK, one probably separates all chapters
into single files and "binds" them together via a main.dbk using Entities. However since
oxygen does not let one assign "meta-information" to a file (e.g. via project properties),
oxygen has no clue when one edits the "chapter" files ...

One example (file sendmail.dbk):
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
[
<!ENTITY % links SYSTEM "links.xml">
<!ENTITY % locallinks SYSTEM "locallinks.xml">
<!ENTITY chapter-install SYSTEM "./install.dbk">
<!ENTITY chapter-mailrouting SYSTEM "./mailrouting.dbk">
<!ENTITY chapter-config SYSTEM "./config.dbk">
<!ENTITY chapter-antispam SYSTEM "./antispam.dbk">
%links;
%locallinks;
]
>
<book lang="de" id="sendmail_workshop">
<title>Sendmail in der Praxis</title>
<subtitle>Workshop: Magdeburger Linuxtag 2003</subtitle>
...
&chapter-install;
&chapter-mailrouting;
&chapter-config;
&chapter-antispam;
</book>
and e.g. a chapter file (install.dbk) would look like:
<?xml version="1.0" encoding="iso-8859-1"?>
<chapter id="install">
<title>Sendmail Installation</title>
...
</chapter>
<!--
Local Variables:
mode: xml
sgml-parent-document: ("sendmail.dbk" "book" "chapter")
sgml-indent-step: 2
tab-width: 2
sgml-indent-data: 1
End:
-->
With emacs (psgml mode) editing the chapter file is no problem, since it uses the comment
at the end of the document to find the parent document of the file as well as the root
aka context element for the document, and the "element container" of the current file.
It even allows a 4th argument (has-seen) . For more information see
http://www.xemacs.org/Documentation/pac ... .html#SEC9
It would be really helpful to have a similar feature like the emacs psgml sgml-parent-document variable in oxygen, too.
What do you think ?
Regards,