Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Schemas & Namespaces

Reply
Thread Tools

Schemas & Namespaces

 
 
chuck
Guest
Posts: n/a
 
      12-30-2007
Hello,

Is it correct to say that a schema is first processed as an XML file where
declared namespaces, the default namespace, etc. are handled and then a
schema file is processed as a schema file, so, if one has:

<xsd:element name="address" type="AddressType" />
<xsd:element name="order" type="OrderType" />
<xsd:element name="FullName" type="NameType" />

.. . . then address, order, and fullname are placed in the targetnamespace,
even if the targetnamespace and default namespace are different?

Thanks.

-c


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      12-30-2007
chuck wrote:

> Is it correct to say that a schema is first processed as an XML file where
> declared namespaces, the default namespace, etc. are handled and then a
> schema file is processed as a schema file, so, if one has:
>
> <xsd:element name="address" type="AddressType" />
> <xsd:element name="order" type="OrderType" />
> <xsd:element name="FullName" type="NameType" />
>
> . . . then address, order, and fullname are placed in the targetnamespace,
> even if the targetnamespace and default namespace are different?


If you have a targetNamespace set in your schema then the semantics of
xsd:element declarations depends on the position and on the
elementFormDefault setting.
If elementFormDefault="qualified" then all elements declarations define
elements in the targetNamespace, otherwise, with
elementFormDefault="unqualfied", only the top-level element declarations
define elements in the targetNamespace.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Namespaces on Schemas inerte@gmail.com XML 6 10-20-2005 12:40 PM
Microsoft CDO Schemas... Green Start Button ASP .Net 1 08-11-2005 09:16 PM
Strange problem with JDOM, Xerces and XML Schemas Soeren Java 2 09-22-2004 10:17 AM
mutliple schemas/namespaces - xml validation Dominique XML 3 06-29-2004 06:29 PM
dynamic color schemas with ASP.NET Oleg Ogurok ASP .Net 1 06-08-2004 01:06 PM



Advertisments