The "elementFormDefault" attribute of the schema element takes values of "qualified" or "unqualified", not "true" and "false". Furthermore, the default is "unqualified", meaning that elements do not use a namespace (technically, they're in the "nonnamespace" namespace).

- Dennis

[EMAIL PROTECTED] wrote:




Whether local elements are namespacequalified or not depends on the elementFormDefault attribute of the schema definition.

Thus given the following definition:

<schema targetName="http://www.foo.com"; elementFormDefault ="true"/>
      <element name="foo"
          <complexType>
                <sequence>
                        <element name="bar" type="xsd:string"/>
                        <element name="baz" type="xsd:string"/>
                </sequence>
          <complexType>
     </element>
</schema>

...


Note that the default value of elementFormDefault is true in case you omit the declaration.

- Junaid






Reply via email to