> So the schema (Listing 2) at
http://www-106.ibm.com/developerwork...2.html?ca=dnt-
520isn't valid at all?
No, I said "If your schema has a target namespace". That one's fine
because it doesn't have a target namespace.
The second example you gave me:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="EN"
targetNamespace="http://ws.apache.org/jaxme/examples/misc/address"
elementFormDefault="qualified" attributeFormDefault="unqualified">
Using this schema, because it DOES have a target namespace, you DO need
a namespace declaration for the target namespace BUT ONLY IF you are
planning to reference other components (e.g. element ref="xxx:bar").
If you show me your whole schema I can probably explain better...
Priscilla
-----------------------------------------------------
Priscilla Walmsley
pr*******@walmsley.com
Author, Definitive XML Schema (Prentice Hall PTR)
-----------------------------------------------------
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!