Has anyone come across this issue before or can help out, please?

I have a DTD (WvSsp.dtd) that contains:


<!ELEMENT PresenceValue (PresenceSubList, Version? )>
<!ATTLIST PresenceValue userID CDATA #REQUIRED>
<!ELEMENT AttributeList (PresenceSubList)>
<!ELEMENT PresenceSubList (#PCDATA)>
<!ATTLIST PresenceSubList xmlns CDATA #REQUIRED>


It basically says that any elements declared within PresenceSubList belongs to the defined namespace, so I can potentially have an XML document that has:


<AttributeList>
<PresenceSubList xmlns=”http://www.wireless-village.org/PA1.1”>
<OnlineStatus>
<Qualifier>T</Qualifier>
<PresenceValue>T</PresenceValue>
</OnlineStatus>
</PresenceSubList>
</AttributeList>


Where the elements <OnlineStatus>, <Qualifier> and <PresenceValue> are defined in a separate DTD (WvPA.dtd), as such:


<!ELEMENT PresenceSubList (OnlineStatus?)>
<!ELEMENT OnlineStatus (Qualifier?, PresenceValue?)>
<!ELEMENT Qualifier (#PCDATA)>
<!ELEMENT PresenceValue (#PCDATA)>


Currently, the XML document has header information that defines the main DTD:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WV-SSP-Message SYSTEM “WvSsp.dtd”>
<WV-SSP-Message xmlns="http://www.wireless-village.org/SSP1.1">


What would the complete XML document look like so that references to both DTD’s are specified, so it can pass a validating parser?

We can’t combine the DTD’s because there are element declarations that use the same name, as shown above with the <PresenceValue> element.


Any help would be greatly appreciated!