[relax-ng] Re: John Cowan's regex for RNG proposal, version 0.3

From
Kohsuke Kawaguchi <>
Date
2002-08-15T14:14:36+00:00
ID
Thread
[relax-ng] Re: John Cowan's regex for RNG proposal, version 0.3
Is there any way to layer this regex on top of RELAX NG? It seems to me
that this is too complicated for tools like RelaxNGCC.

I thought maybe we can extend <param> or <data> pattern to accept XML,
not just PCDATA. Then this regular expression can be just another
datatype library.


For example,

<data type="regexp">
  <param name="start">
    <r:zeroOrMore>
      <r:ref name="digit"/>
    </r:zeroOrMore>
    <r:value>cm</r:value>
  </param>
  <param name="digit">
    <r:charSet>0-9</r:charSet>
  </param>
</data>

regards,
--
Kohsuke KAWAGUCHI
Sun Microsystems