Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm assuing your <code>abf.xsd</code> starts with</p> <pre><code>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.boschafb.com" targetNamespace="http://www.boschafb.com" elementFormDefault="qualified"&gt; </code></pre> <p>With <code>elementFormDefault</code> set to <code>qualified</code>, all element declarations, even nested ones, belong to the specified target namespace. Note that this applies only to elements, a referenced type does not affect the namespace of the element referencing it.</p> <p>A solution would be to define an element instead of a type in 'kts.xsd' and referencing this element in your first schema:</p> <pre><code>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.boschkts.com" targetNamespace="http://www.boschkts.com" elementFormDefault="qualified"&gt; &lt;xs:element name="RESULTS"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="SUMMARY" type="SUMMARY" minOccurs="0" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:schema&gt; &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.boschafb.com" targetNamespace="http://www.boschafb.com" elementFormDefault="qualified" xmlns:kts="http://www.boschkts.com"&gt; &lt;xs:import namespace="http://www.boschkts.com" schemaLocation="kts.xsd"/&gt; &lt;xs:element name="vehicle"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element ref="vType"/&gt; &lt;xs:element ref="kts:RESULT"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:schema&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload