Re: WOFF and extended metadata

On 2 June 2010 17:30, Jonathan Kew <jonathan@jfkew.plus.com> wrote:
> On 2 Jun 2010, at 16:56, Dave Crossland wrote:
>>
>> I am aware this may be too many levels deep, but I'd like to suggest:
>
> No; please don't mix text content and sub-elements in this way.
> That tends to complicate processing. Life is simpler if elements
> contain EITHER child elements OR character data, not a mixture.

Okay. How about this - the point of which is to allow better cascading
of lang attributes.

<extensions>
 <group>
  <set lang="en">
   <name>EU Greeting</name>
   <item>
    <name>Message</name>
    <value>Hello!</value>
   </item>
   <item>
    <name>Date</name>
    <value>2010-06-01</value>
   </item>
  </set>

  <set lang="nl">
  <name>EU Groet
   <item>
    <name>Bericht</name>
    <value>Hallo!</value>
   </item>
   <item>
    <name>Datum</name>
    <value>2010-06-01</value>
   </item>
  </set>

  <set lang="fr">
   <name>EU Salut</name>
   <item>
    <name>Message</name>
    <value>Bonjour!</value>
   </item>
   <item>
    <name>Date</name>
    <value>2010-06-01</value>
   </item>
  </set>
 </group>

</extensions>

Received on Friday, 4 June 2010 20:40:40 UTC