Hi !

// You can include dtd files in the same way.
// Like this:
//
// <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
//
// <!DOCTYPE configuration SYSTEM "test.dtd"
// [
//      <!ENTITY xmlfile SYSTEM "test1.xml">
//      <!ENTITY % dtdfile SYSTEM "test1.dtd">
//       %dtdfile;
// ]>
//
// <configuration>
//
//      <sections>
//              <section name="Default-Values">
//                      <file>&xmlfile;</file>
//              </section>
//      </sections>
//
// </configuration>
//
// The entity dtdfile will be expanded immediatly when it is seen
// and thereby
// loading the file test1.dtd during the DTD parsing.
// Note this is pure "this should work". I have not tested it myself.

thanx for the hint, it works.

the only problem is see with this approach is, that the DTD-file
is not bound to the included XML-file and so I cant make sure,
that the included XML-file is 100% validated correctly.

I understand, that the 2nd DTD is just loaded and not connected to the
included XML-file,
so the included XML-file could also contain elements of the 1st DTD, altough
they
are not valid within this file.

Is there a possibilty to connect the 2 files e.g. by placing the %dtdfile
somewhere else
within the XML-file ?

Regards,
Hans Pesata



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to