Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Composed schemas
Composed schemas [message #592414] Thu, 11 November 2004 11:33
Klaas Dellschaft is currently offline Klaas DellschaftFriend
Messages: 58
Registered: July 2009
Member
Hi,

I've problems with composing a schema from multiple schema documents. Here
is a short example:

1) I have the schemas root.xsd, A.xsd and B.xsd. All schemas have the same
targetNamespace.
2) root.xsd includes A.xsd and B.xsd
3) A.xsd and B.xsd do not include each other
4) A.xsd uses a definition from B.xsd


So if you just parse A.xsd you will get an error message that a definition
couldn't be found. But what is the intended behaviour if you parse
root.xsd?

At the moment you also get an error message that the definition from B.xsd
couldn't be found although it is in known in root.xsd via the include of
B.xsd.

I think this is the corresponding section in the specification of W3C:

"As discussed in Missing Sub-components (§5.3), QNames in XML
representations may fail to resolve, rendering components incomplete and
unusable because of missing subcomponents. During schema construction,
implementations must retain QName values for such references, in case an
appropriately-named component becomes available to discharge the reference
by the time it is actually needed. Absent target namespace names of such
as-yet unresolved reference QNames in <include>d components must also be
converted if clause 3.2 is satisfied."
(http://www.w3.org/TR/xmlschema-1/#layer2)

You find the paragraph at the end of §4.2.1.


My question is: How do you interpret this section? Is it really correct to
get an error when reading root.xsd?


Regards
Klaas Dellschaft
Previous Topic:unresolved element ref
Next Topic:Composed schemas
Goto Forum:
  


Current Time: Fri Apr 19 20:04:27 GMT 2024

Powered by FUDForum. Page generated in 0.02411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top