My question:

- What is your justification for your statement?

"
> | Microsoft uses a lot of XML documents in its products and many of  
> them use
>> elements to contain values.  In fact if you go to W3Cschools you  
>> will see
>> the majority of examples using element values, and this is a resource
>> teaching the basics of XML.
>>
>>
> For instructional documents aimed at those learning XML it is nice and
> simple. If however you are looking to create a bullet proof  
> serialization in XML
where the values matter then it is a poor design."


In my opinion things can equally expressed in attributes and the  
'elements', as this is subject to (local) agreements.
Although CEN/tc251 has published a report (CEN/tc251 TS 15211) some  
years ago where they proposed to express data values as an attribute,  
I have my doubts.
I think it is more correct to reserve attributes to express meta-data  
about the date value in the 'XML-element'.
Attributes to express: language, coding system, precision, etc.

Gerard Freriks


-- <private> --
Gerard Freriks, MD
Huigsloterdijk 378
2158 LR Buitenkaag
The Netherlands

T: +31 252544896
M: +31 620347088
E:     gfrer at luna.nl


Those who would give up essential Liberty, to purchase a little  
temporary
Safety, deserve neither Liberty nor Safety. Benjamin Franklin 11 Nov  
1755






On Nov 30, 2007, at 4:15 PM, Adam Flinton wrote:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20071130/274fb7fe/attachment.html>

Reply via email to