
xmlns:sub=”http://penguin.xmli.com/subscription/1.0”>
<name sub:subscription=”$0.0”>Pineapplesoft Link</name>
<link href=”http://www.pineapplesoft.com/newsletter”/>
</references>
Namespaces and DTD
If the document is a valid document, that is if it has a DTD, the prefix and
the attributes for namespace declaration must be declared in the DTD.
Listing 4.10 illustrates how it works.
Listing 4.10: Declaring the Namespace Prefix in the DTD
<?xml version=”1.0” standalone=”yes”?>
<!DOCTYPE rff:references [
<!ELEMENT rff:references (rff:name,rff:link)+>
<!ATTLIST rff:references xmlns:rff CDATA #REQUIRED>
<!ELEMENT rff:name (#PCDATA)>
<!ELEMENT rff:link EMPTY>
<!ATTLIST ...