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

SV: no targetNamespace, elementFormDefault qualified

From: Bryan Rasmussen <BRS@itst.dk>
Date: Mon, 3 Apr 2006 14:21:49 +0200
Message-ID: <A2DF252098C9AD4B9781453BE4C5422B562C5E@excw2k301.koncern.local>
To: "Michael Kay" <mike@saxonica.com>, <xmlschema-dev@w3.org>
elementformdefault qualified

Okay then, that's reasonable. The next question is if anybody knows of any
processor that would have problems with that construct? Should there be an
xmlns:blank="" perhaps to actively qualify the non-namespace qualified
elements? This all seems somewhat weird, maybe should just write it down as
the kind of thing one should not look at too long. 

Cheers,
Bryan Rasmussen

-----Oprindelig meddelelse-----
Fra: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org]På vegne af Michael Kay
Sendt: 3. april 2006 14:10
Til: Bryan Rasmussen; xmlschema-dev@w3.org
Emne: RE: no targetNamespace, elementFormDefault qualified



No, because form=qualified means "in the target namespace if there is one,
or in the non-namespace if there isn't".

The schema spec (like XSLT) generally treats the
set-of-names-in-no-namespace in the same way as a namespace, despite the
perverse insistence of the Namespaces Rec that this set of names is not a
namespace at all.

Michael Kay
http://www.saxonica.com/



> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Bryan Rasmussen
> Sent: 03 April 2006 12:27
> To: xmlschema-dev@w3.org
> Subject: no targetNamespace, elementFormDefault qualified
> 
> 
> Hi,
> 
>  Given that "If the URI reference in a default namespace 
> declaration is
> empty, then unprefixed elements in the scope of the 
> declaration are not
> considered to be in any namespace" thus there is no namespace 
> to make up the
> namespace part of the QName if one has a blank namespace, 
> shouldn't a schema
> with no targetNamespace and a declaration of 
> elementFormDefault qualified
> raise errors? I'm asking because I just encountered a schema with this
> structure, and it bugs me. 
>  
> 
> Cheers,
> Bryan
> 
> 
Received on Monday, 3 April 2006 12:23:16 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.