This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Entity defs per XML file?


Hello,

I have a question about how to "spread" the entity definitions across the
different XML files.

Let me explain...

Part of the document structure looks like:

main.xml
  userman.xml
    ch01.xml
    ch02.xml
      ch02_inbound.xml
      ch02_storage.xml
      ch02_outbound.xml
    ch03.xml
    ch04.xml
    ch05.xml
  implman.xml

The doctype is defined in main.xml:

<?xml version="1.0"?>
<!DOCTYPE book SYSTEM
"file://hol01sthira/utils/docbook-xml-4.2/docbookx.dtd"[
  <!ENTITY % content SYSTEM "content.ent">
%content; ]>

With content.ent is:

<!ENTITY books.userman          SYSTEM "books/userman/userman.xml">
<!ENTITY ch01.userman           SYSTEM "books/userman/ch01.xml">
<!ENTITY ch02.userman           SYSTEM "books/userman/ch02.xml">
<!ENTITY ch02.userman.inbound   SYSTEM "books/userman/ch02_inbound.xml">
<!ENTITY ch02.userman.storage   SYSTEM "books/userman/ch02_storage.xml">
<!ENTITY ch02.userman.outbound  SYSTEM "books/userman/ch02_outbound.xml">
<!ENTITY ch03.userman           SYSTEM "books/userman/ch03.xml">
<!ENTITY ch04.userman           SYSTEM "books/userman/ch04.xml">
<!ENTITY ch05.userman           SYSTEM "books/userman/ch05.xml">
<!ENTITY books.implman          SYSTEM "books/implman/implman.xml">

What I would like is entity definitions included that are relevant for the
file only.

Something like:

main.xml:

<!ENTITY books.userman          SYSTEM "books/userman/userman.xml">
<!ENTITY books.implman          SYSTEM "books/implman/implman.xml">

userman.xml:

<!ENTITY ch01.userman           SYSTEM "books/userman/ch01.xml">
<!ENTITY ch02.userman           SYSTEM "books/userman/ch02.xml">
<!ENTITY ch03.userman           SYSTEM "books/userman/ch03.xml">
<!ENTITY ch04.userman           SYSTEM "books/userman/ch04.xml">
<!ENTITY ch05.userman           SYSTEM "books/userman/ch05.xml">

ch02.xml:

<!ENTITY ch02.userman.inbound   SYSTEM "books/userman/ch02_inbound.xml">
<!ENTITY ch02.userman.storage   SYSTEM "books/userman/ch02_storage.xml">
<!ENTITY ch02.userman.outbound  SYSTEM "books/userman/ch02_outbound.xml">

Can this be done? If so, how? I cannot seem to get it working right.

Thanks,

Simon de Kraa
Systems Architect
Logistic Systems

FUJITSU SERVICES
Fujitsu Services B.V., Het Kwadrant 1
Postbus 1726, 3600 BS Maarssen, The Netherlands
Tel: +31 346 598865
Mob: +31 651 204719
Fax: +31 346 562703

Email: mailto:Simon.de.Kraa@services.fujitsu.com
Web: http://nl.services.fujitsu.com

Fujitsu Services B.V., Registered in the Netherlands no 30078286
___________________________________________________________________________

The information in this e-mail (and its attachments) is confidential and
intended solely for the
addressee(s). If this message is not addressed to you, please be aware that
you have no
authorisation to read this e-mail, to copy it or to forward it to any person
other than the
addressee(s). Should you have received this e-mail by mistake, please bring
this to the
attention of the sender, after which you are kindly requested to destroy the
original message
and delete any copies held in your system. Fujitsu Services and its
affiliated companies
cannot be held responsible or liable in any way whatsoever for and/or in
connection with
any consequences and/or damage resulting from the contents of this e-mail
and its proper
and complete dispatch and receipt. Fujitsu Services does not guarantee that
this e-mail has
not been intercepted and amended, nor that it is virus-free.
___________________________________________________________________________


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]