title: Attempting to connect XML files with Xinclude attribute xml:base error
body: <p>I wouldn't be here if I hadn't Googled my way into Oblivion.  I have the following problem:
  I have an XML Schema, 3 single XML documents, and an XML document to link all of the other 3.  I am running into the following error and I do not understand why.  </p>
  
  <p>E [Xerces] cvc-complex-type.3.2.2: Attribute 'xml:base' is not allowed to appear in element 'SoftwareRequirementsDocument'.</p>
  
  <p>I have read a bunch of forum posts from Google with people with a similar problem but none of their fixes would help me.  I will post my Schema, 1 XML document to be connected, and the XML document with XInclude.  I will post the beginning of each document as that is what is needed.</p>
  
  <p>Here is NotionalSchema2.xsd:
      </p>
  
  <pre><code>&lt;xsd:element name="ProjectLifecycleDocuments" type="ProjectLifecycleDocumentsType"/&gt;
  &lt;xsd:complexType name="ProjectLifecycleDocumentsType"&gt;
      &lt;xsd:choice minOccurs="0" maxOccurs="unbounded"&gt;
          &lt;xsd:element ref="Team"/&gt;
          &lt;xsd:element ref="SoftwareRequirementsDocument"/&gt;
          &lt;xsd:element ref="UseCaseDocument"/&gt;
          &lt;xsd:element ref="TestCaseDocument"/&gt;
      &lt;/xsd:choice&gt;
      &lt;xsd:attribute name="id" use="required" type="xsd:ID"/&gt;
  &lt;/xsd:complexType&gt;
  
  &lt;xsd:element name="SoftwareRequirementsDocument" type="SoftwareRequirementsDocumentType"/&gt;
  &lt;xsd:complexType name="SoftwareRequirementsDocumentType"&gt;
      &lt;xsd:sequence&gt;
          &lt;xsd:element ref="Section" maxOccurs="unbounded"/&gt;
  
          &lt;!-- Other global elements to be referenced here. --&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:attribute name="projectName" use="required" type="xsd:string"/&gt;
      &lt;!--&lt;xsd:attribute name="id" use="required" type="xsd:ID"/&gt;--&gt;
  &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>Here is my NotionalSRS2.xml:</p>
  
  <pre><code>&lt;SoftwareRequirementsDocument projectName="Lifecycle Documents with Requirements  
  Tracking" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:noNamespaceSchemaLocation="NotionalSchema2.xsd"      
  xmlns:xx="http://apache.org/xml/features/xinclude/fixup-base-uris"&gt;
  
      &lt;Section id="RQ1.0"&gt;
  
      &lt;Title&gt;Introduction&lt;/Title&gt;
    &lt;Para&gt;The Software Requirements Specification details the extent of NUWC’s Lifecycle Project Manager. The product’s main feature is it’s ability to create and manage lifecycle documents using a graphical user interface. The lifecycle documents will be organized and exported using an XML Schema. This can be accomplished by a user who has no knowledge of the XML language. This document will review all the basic functionality required for a user to edit, create, and manage lifecycle projects.
    &lt;/Para&gt;    
      &lt;/Section&gt;
  
      &lt;Section id="RQ1.1"&gt;
          &lt;Title&gt;Purpose&lt;/Title&gt;
          &lt;Para&gt; To provide a detailed description of how the product will produce it’s lifecycle documents as well as edit and export them. It also overviews the basic functional requirements requested by the customer.
          &lt;/Para&gt;
      &lt;/Section&gt;
  </code></pre>
  
  <p>And here is my file using XInclude, ProjectLifecycleDocuments.xml :</p>
  
  <pre><code>&lt;ProjectLifecycleDocuments id="PL1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-     
  instance" xmlns:xi="http://www.w3.org/2001/XInclude"
  xsi:noNamespaceSchemaLocation="NotionalSchema2.xsd"&gt;
  &lt;xi:include href="NotionalSRS2.xml"/&gt; 
  
  &lt;/ProjectLifecycleDocuments&gt;
  </code></pre>
  
  <p>Now I read a lot about namespacing when searching this error, but I could not get a clear grasp on where I was going wrong. </p>
  
  <p>If you could point me in the right direction as to why this error is happening and how I can approach fixing it, that would be great.</p>