[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Namespaces/XSchema Spec - XSchema Element (Sections 2.0 and 2.1),

  • From: rbourret@d... (Ron Bourret)
  • To: xml-dev@i...
  • Date: Thu, 6 Aug 1998 12:35:13 +0200

x schema urn prefix
Simon St. Laurent wrote:
> > There are other fun things we could do, like adding an attribute to
> > XSC:XSchema elements that identifies the namespace in which they live via 
the
> > URN (forget the prefix), 

John Cowan wrote:
> After mulling it for several days, I think this is the Right Thing.
> Add an #IMPLIED "ns" attribute to ElementDecl and AttDef elements
> whose value is an URI.  XSchema validation can then proceed with
> respect to the actual URIs, and disregarding the actual prefixes
> used in particular documents.  This gives XSchemas a leg-up on DTDs,
> which are bound to specific prefixes in the name of SGML
> (and XML 1.0) compatibility.

Toby Speight wrote:
> This sounds good - do we want to include a "suggested prefix" (to
> facilitate conversion to DTD format when possible)?  Or perhaps use
> the fully-prefixed form in the XSchema, and ignore it for direct
> XSchema processing?

Just to be clear, the proposal is as follows:

1) The Namespace element goes away.

2) We add the following attributes:

   <!ATTLIST XSchema
      ...
      ns CDATA #IMPLIED
      prefix NMTOKEN #IMPLIED>

   <!ATTLIST ElementDecl
      ...
      ns CDATA #IMPLIED
      prefix NMTOKEN #IMPLIED>

   <!ATTLIST AttList
      ...
      ns CDATA #IMPLIED
      prefix NMTOKEN #IMPLIED>

The ns attribute states which namespace the element/attribute being declared 
belongs to.  Thus, when validating an instance file, the validator resolves the 
prefix in the instance file and checks that the element/attribute matches the 
definition for that element/attribute in the namespace identified by the ns 
attribute.

The prefix attribute is used only by the XSchema-to-DTD converter; if it is 
missing, the converter either makes up a prefix or does not use a prefix.  (Note 
that we cannot set the ns attribute during DTD-to-XSchema conversion because we 
do not know what namespace applies to which prefix; this information is 
specified in the instance, not the DTD.  For people who agreed to be unabusive 
about their prefix->namespace mappings, we could define a PI for use in the 
DTD.)

If this is the case, I am in complete agreement.

-- Ron Bourret

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.