C
campbell.shaun
The application I am writing uses XML files for validation. I've been
able to set up my xml files so that I can share validation for common
fields using external entities. eg
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY ch1 SYSTEM "http://www.wiz.org/project/chap1.xml">
<!ENTITY ch2 SYSTEM "http://www.wiz.org/project/chap2.xml">
<!ENTITY ch3 SYSTEM "http://www.wiz.org/project/chap3.xml">
]>
<foo>
.... document instance here ...
</foo>
....
<foo>
<BLIVET>&ch1;</BLIVET>
<BLIVET>&ch2;</BLIVET>
<BLIVET>&ch3;</BLIVET>
</foo>
This works fine but I would like to extend it so that I can include
smaller chunks of xml in the included xml file. The problem I have is
with the DOCTYPE declaration in the sub xml file which I need to
include the sub-sub xml file as I don't want this included in my top
level document.
Is it possible to do what I want to do?
Regards
Shaun
able to set up my xml files so that I can share validation for common
fields using external entities. eg
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY ch1 SYSTEM "http://www.wiz.org/project/chap1.xml">
<!ENTITY ch2 SYSTEM "http://www.wiz.org/project/chap2.xml">
<!ENTITY ch3 SYSTEM "http://www.wiz.org/project/chap3.xml">
]>
<foo>
.... document instance here ...
</foo>
....
<foo>
<BLIVET>&ch1;</BLIVET>
<BLIVET>&ch2;</BLIVET>
<BLIVET>&ch3;</BLIVET>
</foo>
This works fine but I would like to extend it so that I can include
smaller chunks of xml in the included xml file. The problem I have is
with the DOCTYPE declaration in the sub xml file which I need to
include the sub-sub xml file as I don't want this included in my top
level document.
Is it possible to do what I want to do?
Regards
Shaun