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