Hi,
<div>I am trying to use a change-set file to load my DSL and DSLR resources, but I am not able to get it working.</div><div><br></div><div>My first attempt was based on the snippet I found here: <a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e933</a></div>
<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><change-set xmlns='<a href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a>'</div>
<div> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'</div><div> xs:schemaLocation='<a href="http://drools.org/drools-5.0/change-set.xsd">http://drools.org/drools-5.0/change-set.xsd</a>' ></div>
<div> <add></div><div> <resource source='file:classification.dsl' type='DSL' /></div><div> <resource source='file:classification.drl' type='DSLR' /></div><div>
</add></div><div></change-set></div></div><div><br></div><div>but I received the following error:</div><div>(null: 4, 78): SchemaLocation: schemaLocation value = '<a href="http://drools.org/drools-5.0/change-set.xsd">http://drools.org/drools-5.0/change-set.xsd</a>' must have even number of URI's.</div>
<div><div>(null: 4, 78): cvc-elt.1: Cannot find the declaration of element 'change-set'.</div></div><div><br></div><div>Then, I found the following old post in the mailing list: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html">http://drools-java-rules-engine.46999.n3.nabble.com/changset-xml-error-when-running-Knowledge-Agent-td182469.html</a></div>
<div>where it was suggested to </div><div>"<span class="Apple-style-span" style="font-family: verdana, geneva, helvetica, arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span>Just replace </span><b><span>xs:<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">schemaLocation</b>='</span></b><a href="http://drools.org/drools-5.0/change-set.xsd" target="_blank" rel="nofollow" link="external" style="font-size: 1em; "><b><span>http://<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">drools</b>.org/<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">drools</b>-5.0/<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">change</b>-<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">set</b>.<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">xsd</b></span></b></a><b><span>'</span></b><span> by </span><b><span>xs:<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">schemaLocation</b>='</span><a href="http://drools.org/drools-5.0/change-set" target="_top" rel="nofollow" link="external" style="font-size: 1em; "><span>http://<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">drools</b>.org/<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">drools</b>-5.0/<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">change</b>-<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">set</b></span></a><span> <b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">drools</b>-<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">change</b>-<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">set</b>-5.0.<b class="highlight" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 102); background-position: initial initial; background-repeat: initial initial; ">xsd</b>'</span></b></span>"</div>
<div><br></div><div>So I changed my file to:</div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><change-set xmlns='<a href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a>'</div>
<div> xmlns:xs='<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'</div><div> xs:schemaLocation='<a href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a> drools-change-set-5.0.xsd' ></div>
<div> <add></div><div> <resource source='file:classification.dsl' type='DSL' /></div><div> <resource source='file:classification.dslr' type='DSLR' /></div><div>
</add></div><div></change-set></div></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>but now I receive the following errors:</div>
<div><div>(null: 4, 100): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 4, 100): cvc-elt.1: Cannot find the declaration of element 'change-set'.</div><div>(null: 5, 9): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 6, 63): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
<div>(null: 7, 65): schema_reference.4: Failed to read schema document 'drools-change-set-5.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.</div>
</div><div><br></div><div>What am I missing?</div><div><br></div><div>Thanks.</div><div>Raf</div>