Hi,

The ZM understands .oet files with a slightly different format, so it is 
only possible to use an template created by the Ocean's tools if you 
adapt it ... The key differences are:
- ZM templates uses a different namespace: 
xmlns="http://schemas.openehr.org/v1"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  This was done to avoid conflicts between the original draft 
specification from openEHR an our model;

- All complex types' names are preceeded by "TEMPLATE_", so instead of 
using <definition xsi:type="COMPOSITION">, please use <definition 
xsi:type="TEMPLATE_COMPOSITION">
  This was done because there is another complex type named 
"COMPOSITION" in Composition.xsd;

All XSD's are in:
http://www.openehr.org/svn/ref_impl_java/SANDBOX/zilics-models/rm/src/main/resources/xsd/

An example of working template:
http://www.openehr.org/svn/ref_impl_java/SANDBOX/zilics-models/test/src/main/resources/xml/templates/Template1.oet


Cheers,
Humberto Silva Naves


Pariya Kashfi wrote:
> Hi,
> I am trying to parse a Template using Zilics donated code
> but for almost all of templates, at least ones which I tried, that 
> exist in OceanInformatics Template folder I receive this parsing error
> br.com.zilics.archetypes.models.rm.exception.XmlParserException: 
> Invalid namespaces at ....
>
> Does anyone have any idea about it? Is it a problem with templates or 
> should I change something is settings
>
> I've tried Parser for Archetypes and it seems there's no problem there
>  
> Regards
> Pariya
>
> PhD Student 
> Interaction Design Division
> Department of Computing  Science and Engineering 
> Chalmers University of Technology
>
> Email: hajar.kashfi at chalmers.se <mailto:hajar.kashfi at chalmers.se>
> Office:+46 (0)31 7725407 
> Mobile Phone: +46 (0)707222815 
> Web: http://www.cs.chalmers.se/~hajar.kashfi/ 
> <http://www.cs.chalmers.se/%7Ehajar.kashfi/>
> Visit: Room Simula B, House Svea, Campus Lindholmen
> Postal adress:
> Email: hajar.kashfi at chalmers.se
>
> Phone: +46 31 772 5407
>
> Office: Room Simula B, House Svea, Campus Lindholmen
>
> Postal Address: Chalmers University of Technology, SE- 412 96 
> Gothenburg, Sweden
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at openehr.org
> http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical
>   


Reply via email to