OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Namespaces and DTDs

[ Lists Home | Date Index | Thread Index ]
  • From: <Marc.McDonald@Design-Intelligence.com>
  • To: <andrew@squiz.co.nz>
  • Date: Tue, 9 Mar 1999 17:29:37 -0800

Exactly. By using <a:HEAD> you would be saying process the HEAD 
element according to the DTD associated with the namespace prefix 'a' 
and consider 'a' to be the default namespace for the DTD. If there is 
no associated DTD, can only check HEAD is well-formed.


Marc B McDonald
Principal Software Scientist
Design Intelligence, Inc
www.design-intelligence.com


----------
From:  Andrew McNaughton [SMTP:andrew@squiz.co.nz]
Sent:  Wednesday, March 10, 1999 6:23 AM
To:  Marc McDonald
Cc:  xml-dev@ic.ac.uk; rbourret@ito.tu-darmstadt.de
Subject:  Re: Namespaces and DTDs


How about having the ability to say 'process the children of this 
element
using that dtd'.  Attach DTD declarations to elements, not just to 
documents.

It feels like some way is needed to make interpretation of XML 
subtrees
dependent on context, hence not requiring the rewriting of XML 
imported into a
document as a subtree from the context of a different document.

(Perhaps I'm being naive.  I'm new to this.)

Andrew McNaughton



> A simple extension to namespaces could have fixed this problem:
> 1.	Allow a DTD to be optionally specified along with the namespace
> prefix and URI
> 2.	When an element is prefixed, parse it using the DTD associated 
with
> the namespace and the given prefix as the default.
> 3.	If no DTD is associated with the prefix or not validating, do 
what
> is done now (ensure element is well-formed).
>
> Your DTDs would not need to be changed, you would just have to
> indicate which HEAD (for example) is desired in the content and add 
> associated DTD urls to the namespace declarations.
>
> Marc B McDonald
> Principal Software Scientist
> Design Intelligence, Inc
> www.design-intelligence.com
>
>
> ----------
> From:  Ronald Bourret [SMTP:rbourret@ito.tu-darmstadt.de]
> Sent:  Tuesday, March 09, 1999 9:02 AM
> To:  xml-dev@ic.ac.uk
> Subject:  RE: Namespaces and DTDs
>
> Richard L. Goerwitz wrote:
>
> > Maybe I misunderstand, but as far as I can see, namespaces won't
> help
> > you, either.  Why?  Because even if you can refer to, say, your 
two
> TITLE
> > elements by different prefixes, you'll still have to declare the
> prefixed
> > elements in the DTD as if they were atomic element names.
> >
> > Namespaces, in other words, don't solve your problem.  They may 
make
> it
> > worse, in fact, because you have to know what prefixes you are 
going
> to
> > declare in a given document to be able to rewrite your DTD to work 
> with
> > that document.
> >
> > There was a furor two or three months ago on this list about
> namespaces
> > breaking validation.  That furor died down when the namespace spec 
> became
> > an official recommendation (a done deal, in other words).
>
> You are correct.  In today's environment (namespace-unaware parsers 
> and no
> way to associate prefixes and URIs in the DTD), you must use the 
same
> prefixes in the DTD and the document for validation to work.  I 
didn't
> state this because it was stated repeatedly during the 
aforementioned
> furor, which I sincerely hope this thread won't reignite.
>
> -- Ron Bourret
>
>
> xml-dev: A list for W3C XML Developers. To post,
> mailto:xml-dev@ic.ac.uk
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
> CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@ic.ac.uk the following 
> message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
>
>
>
> xml-dev: A list for W3C XML Developers. To post, 
mailto:xml-dev@ic.ac.uk
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on 
CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@ic.ac.uk the following 
message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
>

--
-----------
Andrew McNaughton
andrew@squiz.co.nz
http://www.newsroom.co.nz/




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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS