W3C home > Mailing lists > Public > public-i18n-its@w3.org > January to March 2005

RE: Allowed Characters

From: Yves Savourel <yves@opentag.com>
Date: Mon, 28 Feb 2005 08:56:04 -0700
To: <public-i18n-its@w3.org>
Message-ID: <E1D5nFh-0007Fb-Fy@frink.w3.org>

 

> From: Martin Duerst
> Sent: Thursday, February 24, 2005 8:11 PM
> To: Yves Savourel; public-i18n-its@w3.org
> Subject: Re: Allowed Characters
>
> XML Schema can use patterns to limit allowable characters 
> in attributes and in text-only elements. Unfortunately, 
> this mechanism isn't available for mixed content (e.g.
> an element that contains text as well as (potentially) 
> other elements, such as a <p>).
> 
> I also know that in the context of the ISO work on 
> schemas, which is done in various parts, one part is 
> supposed to be a 'language' to specify character 
> restrictions.
>
> In the use cases for localization, is it envisioned that 
> such restrictions would be done on a per-instance base, 
> or would they be on a DTD/Schema base (or both, depending 
> on the use case)?

I would say probably both. For example, an XML document describing the resource
for a printer control panel that can only display single-byte based font, would
use this to restrict the element holding the message at the schema level. But it
could be handy to have it available at the document instance level to mark up
the specific entry of an element usually not restricted (for example, error
messages in an application that work with different device, one of them being
the control panel.
The first case would probably be much more used than the second.

Cheers,
-yves
Received on Monday, 28 February 2005 15:56:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:12:44 GMT