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

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
      <text/>
-->
<!-- possible fix -->
      <data type="string">
   <param name="pattern">[^\s](\s)*</param>
      </data>
<!-- end fix -->
    </define>

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.

Regards,
Glenn

[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