- From: Glenn A. Adams <glenn@xfsi.com>
- Date: Thu, 8 May 2003 14:01:28 -0400
- To: "Masayasu Ishikawa" <mimasa@w3.org>
- Cc: <www-html-editor@w3.org>, <xhtml2-issues@mn.aptest.com>
I don't have a strong opinion on how far to go with datatype constraints over what was in XHTML1.X. As for the specific pattern I proposed below, I first had only [^\s] but then changed to [^\s](\s)* to allow intervening space; however, I see this is not quite correct either since the RNG <list> pattern already uses intervening whitespace to delimit list elements and, further, my initial pattern wasn't quite correct either. So it seems that the correct pattern is probably "[^\s]+", so the RNG would be: <data type="string"> <param name="pattern">[^\s]+</param> </data> G. > -----Original Message----- > From: Masayasu Ishikawa [mailto:mimasa@w3.org] > Sent: Thursday, May 08, 2003 1:36 PM > To: Glenn A. Adams > Cc: www-html-editor@w3.org; xhtml2-issues@mn.aptest.com > Subject: Re: xhtml2-datatypes-2.rng -- Possible semantic > problem with Charset.datatype breaks Trang (PR#7337) > > > Thanks for your suggestion. > > Actually I was wondering how far we would like to elaborate > datatyping. "Modularization of XHTML in XML Schema" didn't > make heavy use of built-in simple datatypes (e.g. "Charset" > was just "xs:string"), to which the XML Schema WG complained. > Characters allowed for charset name are much restricted and > we could elaborate that restriction to some extent with > regular expressions. Do we want to do this? > > "Glenn A. Adams" <glenn@xfsi.com> wrote: > > > <!-- possible fix --> > > <data type="string"> > > <param name="pattern">[^\s](\s)*</param> > > </data> > > <!-- end fix --> > > If we really want to elaborate the Charset datatype, I don't > think the pattern should allow white space, at the very least > "\S+" or something. > > It's "xhtml-datatypes-2.rng", not "xhtml2-datatypes-2.rng", BTW. > > > [1] > > > http://www.w3.org/TR/xhtml2/relax_module_defs.> html#a_rmodule_Datatypes > > [2] http://www.thaiopensource.com/relaxng/trang.html > > Regards, > -- > Masayasu Ishikawa / mimasa@w3.org > W3C - World Wide Web Consortium >
Received on Thursday, 8 May 2003 14:01:21 UTC