Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse XML Catalog: add XSD which imports or includes another XSD
    primarykey
    data
    text
    <p>i want to add some XSD files to my Eclipse XML Catalog so it can validate XML files. Unfortunately the XSD includes and imports other XSD, and in turn they import other XSD files as well.</p> <p>First XSD, BPMN20.xsd:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL"&gt; &lt;xsd:import namespace="http://www.omg.org/spec/BPMN/20100524/DI" schemaLocation="BPMNDI.xsd"/&gt; &lt;xsd:include schemaLocation="Semantic.xsd"/&gt; ... </code></pre> <p>Second XSD, Semantic.xsd:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL"&gt; &lt;xsd:element name="activity" type="tActivity"/&gt; &lt;xsd:complexType name="tActivity" abstract="true"&gt; ... </code></pre> <p>Eclipse immediately tells me that the second XSD can not be registered because it uses the same name space <code>http://www.omg.org/spec/BPMN/20100524/MODEL</code> under which i already registered the first XSD.</p> <p>Is it possible to solve this issues of XSDs importing/including other XSDs with Eclipse? I see lots of XSD files referencing other files, so it seems to be quite common to split type or attribute definitions and persist them in different files.</p> <p>Thanks Joysn</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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