Hi !

// Actually, this is a very typical question, and yes, you use external
// entities. Instead of defining them in your DTD (i.e. the external
// subset), you use the internal subset within your XML document:
//
// <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
// <!DOCTYPE classes SYSTEM 'classes.dtd' [
//   <!ENTITY Person SYSTEM "Person.xml" >
//   <!ENTITY Security SYSTEM "Security.xml" >
//   <!ENTITY Audit SYSTEM "Audit.xml" >
//   <!ENTITY Organization SYSTEM "Organization.xml" >
//   <!ENTITY SecurityGroup SYSTEM "SecurityGroup.xml" >
//   <!ENTITY Contact SYSTEM "Contact.xml" >
//
// ]>
// <classes>
// &Person;
// &Security;
// &Audit;
// &Organization;
// &SecurityGroup;
// &Contact;
//
// </classes>
//
// HTH,

Thanx for your reply!

I need a slightly different approach, than the one you suggested.
I need to use the entity-value in an attribute of another object than the
root-object:

-------------------------------------------
TEST.DTD
-------------------------------------------

<!ELEMENT       configuration (sections?)>

<!ELEMENT       sections (section*)>
<!ELEMENT       section EMPTY>
<!ATTLIST       section
                        name      CDATA #REQUIRED
                        xmlfile ENTITY  #REQUIRED>

-------------------------------------------
TEST.XML
-------------------------------------------

<?xml version="1.0" standalone="no"?>

<!DOCTYPE configuration SYSTEM "test.dtd"
[
        <!ENTITY xmlfile SYSTEM "section.xml">
]>

<configuration>

        <sections>
                <section name="Default-Values" xmlfile="xmlfile"/>
        </sections>

</configuration>

-------------------------------------------

this doesnt work, because the entity isnt defined within the DTD...

Best regards,
Hans Pesata



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

Reply via email to