Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > multiple dtds namspaces

Reply
Thread Tools

multiple dtds namspaces

 
 
David Tucker
Guest
Posts: n/a
 
      09-08-2004
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
 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      09-08-2004
In article < >,
David Tucker <> wrote:
>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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Problems with multiple multiple-level inclusion of DTDs Peter Flynn XML 1 07-27-2008 08:14 PM
XML Namspaces Chase Preuninger XML 8 05-06-2008 01:32 PM
DTDs and syntax JimO HTML 3 05-31-2005 07:10 PM
Good SGML DTD viewer *or* tool for translating SGML DTDs to XML DTDs Clifford W. Racz XML 4 02-13-2004 06:24 PM
Local DTDs: Where? chris XML 3 08-16-2003 12:51 AM



Advertisments