title: XML Schema reference
body: <p>I have two XML Schemas. First (<code>A.xsd</code>) is located in a library jar file (<code>mylib.jar</code>) and the second one (<code>B.xsd</code>) is in my project.</p>
  
  <p>I want to import <code>A.xsd</code> into the <code>B.xsd</code> and validate incoming XML via <code>Jaxb2Marshaller</code> embedded validator.</p>
  
  <p>However I'm unable to make it work properly: it seems that inner XML validator of <code>Jaxb2Marshaller</code> does not understand references to files in jar-files (I just want to write something like <code>&lt;xs:import namespace="http://my/schema.xsd" schemaLocation="classpath:schema.xsd"&gt;</code>).</p>
  
  <p>How it could be fixed? How could library schema be referenced from a project schema?</p>