XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Venetian Blinds vs Garden of Eden patterns for industrystandards XML Schemas

On Thu, Oct 28, 2010 at 5:22 PM, David <dlee@calldei.com> wrote:
> The one thing I'm most confused about is what the namespace issue is.
> Why do the different patterns impose different namespace issues ? Arnt all
> the elements in the schema in the same namespace, and reguardless of if you
> implmeent the XSD elements as local or global types, they are in the same
> namespace, and instance documents need follow the same rules ?
>
> What does where global/vs/local element declaration change wrt namespace use
> in the instance doc ?

I think specifying namespace constraints in XML schema gets better in
1.1 version where we can specify targetNamespace indicator on
xs:element and xs:attribute instructions (not available in 1.0), which
allows us to have one schema document validate an XML document which
may have arbitrary composition of namespaced element and attribute
instances.

With XSD 1.0, to specify heterogeneous namespaced element and
attribute declarations in an schema, we have to specify xs:import in
the parent schema document, and specify XSD element/attribute ref= at
desired places to allow different namespaced elements/attributes than
the targetNamespace on xs:schema instruction. This required us to use
as many schema documents (via imports) as different namespaces XML
document was composed of (i guess that was painful as number of
different namespaces grew in an validation episode). In XSD 1.1, we
can have only one schema document which can handle any number of
namespaces, via localized targetNamespace instructions (though the XSD
1.0 facility of xs:import is still available in XSD 1.1).




-- 
Regards,
Mukul Gandhi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS