Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You actually need at least as many XSD files as namespaces since one XSD file can target only one namespace, or none.</p> <p>Since your root element is in one namespace, and the attribute in another, you need then two files at least. You "link" them through an <strong><em>xsd:import</em></strong>.</p> <p><strong>Top XSD:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!--XML Schema generated by QTAssistant/XML Schema Refactoring (XSR) Module (http://www.paschidev.com)--&gt; &lt;xsd:schema xmlns="http://xmlns.oracle.com/sca/1.0" xmlns:id="http://xmlns.oracle.com/id/1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;xsd:import schemaLocation="xsd-syntax-for-xml-attributes-with-namespace1.xsd" namespace="http://xmlns.oracle.com/id/1.0" /&gt; &lt;xsd:element name="root"&gt; &lt;xsd:complexType&gt; &lt;xsd:sequence&gt; &lt;xsd:element name="service"&gt; &lt;xsd:complexType&gt; &lt;xsd:attribute name="name" type="xsd:string" use="required" /&gt; &lt;xsd:attribute ref="id:number" use="required" /&gt; &lt;/xsd:complexType&gt; &lt;/xsd:element&gt; &lt;/xsd:sequence&gt; &lt;/xsd:complexType&gt; &lt;/xsd:element&gt; &lt;/xsd:schema&gt; </code></pre> <p><strong>xsd-syntax-for-xml-attributes-with-namespace1.xsd</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!--XML Schema generated by QTAssistant/XML Schema Refactoring (XSR) Module (http://www.paschidev.com)--&gt; &lt;xsd:schema xmlns="http://xmlns.oracle.com/id/1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/id/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;xsd:attribute name="number" type="xsd:unsignedShort" /&gt; &lt;/xsd: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.
    3. VO
      singulars
      1. This table or related slice is empty.
    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