ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
[] DTD validation [can] work with namespaces []
by james anderson other posts by this author
Aug 14 2000 4:26PM messages near this date
Re: Does DTD validation work with namespaces? | Re: Does DTD validation work with namespaces?
----------
nb. this is not a note about the kinds of sematic baggage with which
namespaces might be encumbered. it is also not a note about whether a
namespace name can contribute to identifying the location of a dtd. it
is a note about how to encode multi-dtd documents in a manner which a
not-radically extended xml 1.0 parser could be made to parse.
----------

if one adds the requisite attributes to the combining dtd, it is
possible to infer the namespace membership of the names which one wishes
to capture.

>    <!-- A DocBook/HTML DTD -->
>    <!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook XML V4.1.1//EN"
>                       "some system URI here">
    <ATTLIST table
       xmlns  CDATA #FIXED "-//OASIS//DTD DocBook XML V4.1.1//EN"> 
>    %docbook;
>  
>    <!ENTITY % html PUBLIC "-//W3C//DTD XHTML V1.0//EN"
>                       "some system URI here">
    <ATTLIST table
       xmlns CDATA #FIXED "-//W3C//DTD XHTML V1.0//EN"> 
>    %html;
>  


while this is not a valid xml-1.0 encoding, it is concistent with
section 4 (using qualified names) of the namespace recommendation. it
also provides the parser with sufficient information to intern names in
the proper namespaces iff the parser is using the attribute defaults as
it decodes.

"Winchel 'Todd' Vincent, III" wrote:
>  
>  / "Winchel 'Todd' Vincent, III" <winchel@[...].com> was heard to say:
>  | I suggest to Marcus).  This would allow you to use elements from someone
>  | else's DTD without having to create one big DTD and you might also be able
>  | to take advantage of some of the Namespace features (defaulted prefixes,
>  for
>  | instance), which I can't see how you would do otherwise.
>  
>  <NormanWalsh>
>  I don't think it's a problem to require the author who wants to mix
>  several DTDs together to build the compound DTD. It's pretty straight
>  forward, and it lets all of the existing machinery (modulo the namespaces
>  tweak) to work the way it does now:
>  
>    <!-- A DocBook/HTML DTD -->
>    <!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook XML V4.1.1//EN"
>                       "some system URI here">
>  
>    %docbook;
>  
>    <!ENTITY % html PUBLIC "-//W3C//DTD XHTML V1.0//EN"
>                       "some system URI here">
>    %html;
>  
>  That's pretty short and easy to do.
>  </NormanWalsh>
>  
>  This is not correct.  The problem --> Element collision.
>  
>  Further, as more or more DTDs are developed, there will be more and more
>  element collision.
>  
>  Classic example: An HTML <Table> and a furniture manufacturer's <Table>.
>  
>  Consider the legal industry -- any document, from any source, can show up on
>  a lawyers desktop as a peice of evidence.  This means mixed namespaces.
>  
>  Thanks,
>  
>  Todd
Thread:
Paul W. Abrahams
Rick JELLIFFE
W. E. Perry

Jonathan Borden
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
John F. Schlesinger
Jonathan Borden
Simon St.Laurent
W. E. Perry
John Cowan
Rick JELLIFFE
Rick JELLIFFE
Sean McGrath
Simon St.Laurent
Jonathan Borden
Sean McGrath
Rick JELLIFFE
Rick JELLIFFE
Simon St.Laurent
James Robertson
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
Paul W. Abrahams
Jonathan Borden
Paul W. Abrahams
Rick JELLIFFE
Dan Vint
Rick JELLIFFE
Marcus Carr
Michael Champion
John Cowan
John Cowan
John Cowan
Michael Champion
Winchel 'Todd' Vincent, III
John Cowan
Jonathan Borden
sam th
Jonathan Borden

Simon St.Laurent
John Cowan
John Cowan
John Cowan
Simon St.Laurent
Richard Lanyon
John Cowan
Jonathan Borden
John Cowan
Simon St.Laurent
John Cowan
Jonathan Borden
Rick JELLIFFE
james anderson
Winchel 'Todd' Vincent, III
Winchel 'Todd' Vincent, III
Rick JELLIFFE

Norman Walsh
Jonathan Borden
Winchel 'Todd' Vincent, III
Jonathan Borden
Norman Walsh
Winchel 'Todd' Vincent, III
Amy Lewis

Eric Bohlman

John Cowan
Simon St.Laurent
Jeff Greif
Jonathan Borden
Elliotte Rusty Harold
Sean McGrath
Simon St.Laurent
Joe English
Simon St.Laurent
Jonathan Borden
Simon St.Laurent
W. E. Perry
Jonathan Borden
John Cowan
John Cowan
Sean McGrath
W. E. Perry
John F. Schlesinger
Sean McGrath
Michael Champion
Michael Champion
Paul W. Abrahams
John Cowan
Paul W. Abrahams
Paul W. Abrahams
Simon St.Laurent
Martin Gudgin
Jonathan Borden
Simon St.Laurent
Tim Bray
Jonathan Borden
Jack Rusher
Steve Rowe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved