multiple dtds namspaces

D

David Tucker

i have an xml document that needs to use multiple dtds. each dtd may
have the same element names in general but some will differe slightly.
I want to use namspaces but every time I do so it complains about tags
already defined.

I do not want to use prefixes since that is almost like using new
elements.
is there a trick to using many dtds with the same element names ?

thanks

davidT
 
R

Richard Tobin

is there a trick to using many dtds with the same element names ?

No. You can only declare each element name once in a DTD.
I do not want to use prefixes since that is almost like using new
elements.

That's what you'll have to do. There are tricks with parameter
entities to let the user choose the prefixes, rather than having them
be fixed by the DTD, but if you want two elements called "foo" then at
least one of them will have to be prefixed.

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,830
Latest member
HeleneMull

Latest Threads

Top