Help with DTD and XML namespaces

wxdqz

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

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

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

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

鈥?br />
<AttributeList>
<PresenceSubList xmlns=鈥漢ttp://www.wireless-village.org/PA1.1鈥?gt;
<OnlineStatus>
<Qualifier>T</Qualifier>
<PresenceValue>T</PresenceValue>
</OnlineStatus>
</PresenceSubList>
</AttributeList>
鈥?br />

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

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

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

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WV-SSP-Message SYSTEM 鈥淲vSsp.dtd鈥?gt;
<WV-SSP-Message xmlns="http://www.wireless-village.org/SSP1.1">
鈥?br />

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

We can鈥檛 combine the DTD鈥檚 because there are element declarations that use the same name, as shown above with the <PresenceValue> element.


Any help would be greatly appreciated!
 
Top