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

Re: WOFF and extended metadata

From: Dave Crossland <dave@lab6.com>
Date: Fri, 4 Jun 2010 21:39:45 +0100
Message-ID: <AANLkTilvwq5mbT-m2ngXHHAWnluYgB-yXrk6mZewPt3B@mail.gmail.com>
To: Jonathan Kew <jonathan@jfkew.plus.com>
Cc: "www-font@w3.org" <www-font@w3.org>, "public-webfonts-wg@w3.org" <public-webfonts-wg@w3.org>
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:41 UTC

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