W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2003

xhtml2-datatypes-2.rng -- Possible semantic problem with Charset.datatype breaks Trang

From: Glenn A. Adams <glenn@xfsi.com>
Date: Thu, 8 May 2003 12:11:53 -0400
Message-ID: <7249D02C4D2DFD4D80F2E040E8CAF37C03B9D7@longxuyen.xfsi.com>
To: <www-html-editor@w3.org>
Cc: <w3c-html-wg@w3.org>

In WD-xhtml2-20030506 [1], the content of xhtml2-datatypes-2.rng
causes an exception in Trang [2] when translating from rng to xsd.
The problem can be fixed by a slight tweak to this module:

    <define name="Charset.datatype">
      <x:p>A character encoding, as per [RFC2045].</x:p>
<!-- breaks trang when xlating to xsd
<!-- possible fix -->
      <data type="string">
	  <param name="pattern">[^\s](\s)*</param>
<!-- end fix -->

I've informed James Clark of the problem in Trang. Also,
it would seem that defining a list of charsets would not
exactly work if each charset is defined as <text/>, which
presumably can contain whitespace. The above definition
should correct this.


[1] http://www.w3.org/TR/xhtml2/relax_module_defs.html#a_rmodule_Datatypes
[2] http://www.thaiopensource.com/relaxng/trang.html
Received on Thursday, 8 May 2003 12:12:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:48 UTC