Rong Chen wrote:
> Hi Adam, Heath
>
> The attribute in question, original_author is an attribute of Class 
> RESOURCE_DESCRIPTION from rm.common.resource package. According to the 
> specs (common_im.pdf), the type is Hash<String,String> NOT a string 
> and the invariant on it is "Original_author_valid: original_author /= 
> Void and then not original_author.is_empty".
>
> The Java implementation (see below) of this invariant is, I believe, 
> faithful interpretation of the specs.
>
>     if (originalAuthor == null || originalAuthor.size() == 0 ) {
>         throw new IllegalArgumentException("null or empty 
> originalAuthor");
>     }
>
> The thing I am not sure here is the XML schema. If the schema is not 
> compliant with the RM specs, perhaps the schema should be updated so 
> the parsing code generated from schema can catch errors like this, 
> thoughts?
>
Any idea then which is right?

I can chuck you our ADL > XML ant task so you can look at all the 
various errors against a given set of our ADL held on the openEHR svn.

 
Adam

***********************************************************************
This  message  may  contain  confidential and  privileged  information.
If you  are not the  intended recipient  you should not  disclose, copy
or distribute information in this e-mail or take any action in reliance
on its contents.  To do so is strictly  prohibited and may be unlawful.
Please  inform  the  sender that  this  message has  gone astray before
deleting it.  Thank you.

2008 marks the 60th anniversary of the NHS.  It's an opportunity to pay
tribute to the NHS staff and volunteers who help shape the service, and
celebrate their achievements.

If you work for the NHS  and  would like  an NHSmail  email account, go
to: www.connectingforhealth.nhs.uk/nhsmail
***********************************************************************


Reply via email to