Declaring element more than once in a DTD with namespace ?!?

Dan Gunter DKGunter at lbl.gov
Tue Oct 26 22:41:31 BST 1999


Sebastien Sahuc wrote:
> 
> Hello there,
> 
> The XML spec says that elements with same name cannot be declared more
> than once in DTD. Fine, now, I believe Namespace can help me to
> proviude a workaround.

>snip<

> The main point is the 'operations' element : affiliate can have the
> operations 'get'; 'set'; 'update'; etc... while merchant has it owns
> one (different from affiliate's list).
> 

I am new to XML, but it seems to me that a mere "workaround" could be
done with more descriptive names, for example 'merchant-operations' and
'affiliate-operations'. They are, after all, different things, right?

The reason I'm bothering the list with this rather trivial response is
that I'm wondering if naming conventions are normal XML practice, or if
there is a better way, short of specifying external files like
namespaces seem to require.

-- 
[............. Dan Gunter - LBNL ....................]
[One Cyclotron Road, MS:50B-2239, Berkeley, CA 94720 ]
[(510)495-2504 / DKGunter at lbl.gov                    ]

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list