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
[xml-dev] DSDL part 9: new namespace declarations not needed as part of DTD syntax?
by Rick Jelliffe other posts by this author
Jun 14 2002 8:47AM messages near this date
[xml-dev] Re: [dsdl-comment] DSDL: use cases: namespace declaration notation | Re: [xml-dev] DSDL part 9: new namespace declarations not needed as part of DTD syntax?
From: "james anderson" <james.anderson@[...].de> 

>  I agree, that it is gratuitous to require that xmlns:* attributes be declared for an eleme
nt to be valid.

Is there any need for explicit namespace declarations in the DTD at all?

Why not just assign whole element sets to a namespace, in the external DSDL framework,
and leave the syntax of DTDs exactly as it is?   That would seem to be more manageable,
because then people can use their current non-namespace DTDs without needing to change
them.  And it would be easier to make GUI tools for too, which is a definite consideration I
MHO.

Namespaces were designed for modularity, so I don't believe there is any urgency
to support arbitrary mixes of namespace declarations in the same entity.

So you would have an element set for CALs, an element set for DOCBOOK, and an element
set for XLink. The framework document could have something like:

<xmlDtd> 
 <namespaceMappings> 
    <namespace 
        uri="...namspace for CALS tables"  
        typicalPrefix="cals"
        pubId=" FPI for CALS"  > 
        <systemID> location of declaration</systemID>
    </namespace> 
    <namespace uri="...namspace for docbook" 
        typicalPrefix="db" 
        publId="public identifier for DOCBOOK" > 
        <systemId> location of declaration</systemId>
        <systemId> location of some component declaration</systemId>
        <systemId> location of another coponent declaration</systemId>
        <systemId> location of some other one</systemId>
    </namespace> 
 </namespaceMappings> 
</xmlDtd> 

Whether this is part of the framework itself, or part of the method
of invoking a DTD as part of a DSDL pipeline, don't forget that
you do have this upper-level of XML-syntax available.  There is
probably some sweet spot with DTDs where if you have too many
kinds of declarations it puts more people off than it attracts: I would
expect to see namespace-aware DTDs being translated into RELAX NG
or XML Schemas by an implementation anyway, so in a way they
are really just an alternative syntax for easier transitioning.

But this is discussing techniques before requirements.  What are the
requirements for DTDs in DSDL?   I would say the requirement is
to support legacy DTDs and tools which help people migrate from
non-namespace documents to namespaced documents easily. In 
other words, just the minimum to make DTDs useable for validating 
XML documents without DOCTYPE declarations and which use
namespaces. 

Cheers
Rick Jelliffe

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
John Cowan
Marcus Carr
Eric Bohlman
Marcus Carr
james anderson
james anderson
james anderson
Marcus Carr
Arjun Ray
Marcus Carr
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Deborah Aleyne Lapeyre
John Cowan
Thomas B. Passin
Ronald Bourret
Ronald Bourret
Michael Kay
Thomas B. Passin
james anderson
David Carlisle
james anderson
David Carlisle
james anderson
David Carlisle
james anderson
Michael Kay
james anderson
David Carlisle
Tim Bray
Ronald Bourret
Ronald Bourret
Ronald Bourret
Arjun Ray
John Cowan
Arjun Ray
John Cowan
Arjun Ray
John Cowan
John Cowan
james anderson
John Cowan
Rick Jelliffe
Arjun Ray
John Cowan
Rick Jelliffe
Rick Jelliffe
Dennis Sosnoski
John Cowan
Dennis Sosnoski
John Cowan
Dennis Sosnoski
Arjun Ray
G. Ken Holman
John Cowan
Arjun Ray
james anderson
Arjun Ray
John Cowan
Arjun Ray
Rick Jelliffe
John Cowan
Arjun Ray
John Cowan
John Cowan
james anderson
John Cowan
james anderson
james anderson
John Cowan
james anderson
james anderson
John Cowan
Ronald Bourret
Ronald Bourret
Jonathan Borden
Ronald Bourret
Michael Fuller
John Cowan
Bob Hutchison
james anderson
Thomas B. Passin
John Cowan
Ronald Bourret
John Cowan
Thomas B. Passin
Ronald Bourret
Ronald Bourret
james anderson
Norman Walsh
K. Ari Krupnikov
John Cowan
John Cowan
K. Ari Krupnikov
John Cowan
G. Ken Holman
Ronald Bourret
Rick Jelliffe
John Cowan
Marcus Carr
G. Ken Holman
John Cowan
Michael Fitzgerald
Paul Prescod
John Cowan
John Cowan

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