471,073 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

Wildcard vs. Import

I am having a little trouble sorting out the exact differences between
using wildcards and using import in XML schema.

I know that a wildcard allows any global elements from the referenced
schema/namespace to be used in an XML instance document based on the
current schema but only within the element where the wildcard is
specified. When I import a schema, does that allow ANY elements from the
imported schema to be used ANYWHERE in the XML instance document? Or does
that just allow you to then borrow only specific components from the
imported schema for use within your current schema and only those
components are allowed to appear in the XML instance document?

If the latter, is the only difference - between wildcards and import -
that wildcards allow any element from the referenced schema while import
only allows the specified elements? Are there any subtle differences that
I should know about?

Jun 6 '07 #1
2 1485
Grant Robertson wrote:
When I import a schema, does that allow ANY elements from the
imported schema to be used ANYWHERE in the XML instance document?
No.

The importing schema still defines the structure of its own elements.
The imported elements may only be used in places where the importing
schema explicitly references them, or uses a wildcard/ANY to allow them.

Suggested reading:
http://www.w3.org/TR/xmlschema-1/#co...n-schemaImport


--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 6 '07 #2
In article <Ef******************************@comcast.com>, keshlam-
no****@comcast.net says...
The importing schema still defines the structure of its own elements.
The imported elements may only be used in places where the importing
schema explicitly references them, or uses a wildcard/ANY to allow them.
Thanks, again, for your help.
Jun 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Thomas Rademacher | last post: by
1 post views Thread by Generic Usenet Account | last post: by
13 posts views Thread by hawkesed | last post: by
4 posts views Thread by madeleine.macphail | last post: by
reply views Thread by Tim Golden | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.