[kepler-dev] [Bug 4942] KarXmlGenerator generated a invalid kar xml if KarEntry has dependsOnModule element

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Apr 16 12:36:33 PDT 2010


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4942

--- Comment #1 from Jing Tao <tao at nceas.ucsb.edu> 2010-04-16 12:36:33 PDT ---
I dug around and found the xml instance is:
<karEntryAttributes>
  <Name>
     tpc09-plant-dynamics-woody_ROML.xml
 </Name>
 <dependsOn>
      urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:8016:19:1
 </dependsOn>
 <handler>
   org.kepler.kar.handlers.ReportLayoutKAREntryHandler
  </handler>
  <dependsOnModule>
      reporting
  </dependsOnModule>
  <lsid>
    urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:3371:205:1
  </lsid>
  <type>
       org.kepler.reporting.rio.ReportInstance
  </type>
</karEntryAttributes>

The schema is:
<xs:complexType name="karEntryAttributesType">
    <xs:sequence>
       <xs:element name ="Name"  type="xs:string" />
       <xs:element name ="dependsOn" minOccurs="0" />
       <xs:element name ="dependsOnModule" minOccurs="0" />
       <xs:element name ="handler" />
       <xs:element name ="lsid" />
       <xs:element name ="type" />
    </xs:sequence>
</xs:complexType>

Their orders are not match. So my question is: is  the order of the schema
correct?
If the schema is correct, we can change the code to create instance. Otherwise,
we have to change the schema.

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list