OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [dita] Clarification on data Element


Hi, Eliot:

Good issue -- that should have been addressed.

I can see a case for having both a value and content where the content adds detail about the value, as in:

<availabilityProblem value="intermittent">
<incidentStart value="11:21"/>
<incidentEnd value="12:16"/>
</availabilityProblem>

Of course, another way to express that data would be to bump the value down to a peer of the other content:

<availabilityIncident>
<availabilityProblem value="intermittent"/>
<incidentStart value="11:21"/>
<incidentEnd value="12:16"/>
</availabilityIncident>

But, the first form might express the intent better where the start and end times are just incidental and the problem itself is the salient fact.

There may also be cases where a value attribute could be useful for text content -- again, where the value says something general and the content provides the detail:

<temperature value="centigrade">17.3</temperature>

Of course, the same thing could be expressed as follows:

<temperature>
<temperatureScale value="centigrade"/>
<temperatureMeasurement value="17.3"/>
</temperature>

But that markup might be too heavyweight for some uses.

There may be cases where a designer who is defining a specialized <data> element with a value attribute wants to provide an optional nested <data> element to allow for unknown detail (potentially through specialization).

Could the statement be something along the following lines:

A <data> element should allow both an attribute value and content only where the content adds detail or specificity to the value.


What do you think?


Erik Hennum
ehennum@us.ibm.com


Inactive hide details for "W. Eliot Kimber" <ekimber@innodata-isogen.com>"W. Eliot Kimber" <ekimber@innodata-isogen.com>


          "W. Eliot Kimber" <ekimber@innodata-isogen.com>

          02/28/2007 07:57 AM


To

<dita@lists.oasis-open.org>

cc


Subject

[dita] Clarification on data Element

The <data> element can have either a value attribute or
directly-contained data. The description of data in the 2/13 spec
doesn't say what it means to have both a value attribute and
content--should this case be disallowed?


GIF image



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]