W3C home > Mailing lists > Public > www-font@w3.org > April to June 2010

Re: WOFF and extended metadata

From: Jonathan Kew <jonathan@jfkew.plus.com>
Date: Wed, 2 Jun 2010 17:30:41 +0100
Cc: "www-font@w3.org" <www-font@w3.org>, "public-webfonts-wg@w3.org" <public-webfonts-wg@w3.org>
Message-Id: <E1C81D90-C914-4780-8E89-0C210CF5CB9D@jfkew.plus.com>
To: Dave Crossland <dave@lab6.com>
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:
> 
> 
> <extensions>
> 	<group>
> 		<set lang="en">
> 			EU Greeting
> 			<item>
> 				Message
> 				<value>Hello!</value>
> 			</item>
> 			<item>
> 				Date
> 				<value>2010-06-01</value>
> 			</item>
> 		</set>
> 
> 		<set lang="nl">
> 		EU Groet
> 			<item>
> 				Bericht
> 				<value>Hallo!</value>
> 			</item>
> 			<item>
> 				Datum
> 				<value>2010-06-01</value>
> 			</item>
> 		</set>
> 
> 		<set lang="fr">
> 			EU Salut
> 			<item>
> 				Message
> 				<value>Bonjour!</value>
> 			</item>
> 			<item>
> 				Date
> 				<value>2010-06-01</value>
> 			</item>
> 		</set>
> 	</group>
> 
> </extensions>

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.

JK
Received on Wednesday, 2 June 2010 16:31:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:34 UTC