Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-ui-dev] Re: Extension point schemas don't seem to use namespaces properly

It's now been a week since this was posted to pde-ui-dev. Is this a
write-only list? ;-}

There seems to be nothing in the archives since Feb 18. Is the list broken?

Bob
"Testing. Testing. Is this thing working?" - Milton Berle

----- Original Message -----
From: <DJ_Houghton@xxxxxxxxxx>
To: <pde-ui-dev@xxxxxxxxxxx>
Cc: <bob@xxxxxxxxxxxx>
Sent: Thursday, March 06, 2003 9:52 AM
Subject: Extension point schemas don't seem to use namespaces properly


> A question better directed to this mailing list. (forwarded from
> pde-core-dev)
>
>
> ----- Forwarded by DJ Houghton/Ottawa/IBM on 03/06/2003 10:49 AM -----
>
>
> [This is a repeat of a posting to the eclipse.tools newsgroup. My
apologies
> if response has crossed in the mail.]
>
> The schemas define a targetNamespace, but that namespace is not used in
ref
> attributes to qualify global element names. For example, in templates.exsd
> provided by org.eclipse.pde, we have:
>
> <schema targetNamespace="org.eclipse.pde.ui">
> ...
>   <element name="extension">
>     <complexType>
>       <sequence>
>         <element ref="template" minOccurs="1" maxOccurs="unbounded"/>
>       </sequence>
>       ...
>     </complexType>
>   </element>
>
>   <element name="template">
>     ...
>   </element>
> ...
> </schema>
>
> The value of a ref attribute is a QName. Since "schema" and "template" are
> both unqualified they must be in the same namespace, but they aren't.
>
> Is there some interpretation of XMLSchema I'm not aware of that makes this
> usage correct?
>
> If not, this must be a non-standard XMLSchema subset. (The schema editor
> marks properly qualified ref attributes as errors.) So the question
> naturally arises: Is there some documentation of the subset implemented?
> What other restrictions apply?
>
> Bob
>
>
>
>
>
>



Back to the top