Next in thread → Next in month →

Re: Modularization

From
James Clark <>
Date
2001-05-01T08:44:59+00:00
ID
032101c0d21a$9f98d570$
Thread
Re: Modularization
> The only workaround I found is
>
> <element name="topLevel">
>   <grammar>
>     <include href="relaxCore.trex" />
>     <start combine="replace">
>       <ref name="ref.label" />
>     </start>
>   </grammar>
> </element>

That is the intended solution to the problem.

> Which is quite a lot of typing (at least for me).

I suppose it wouldn't be hard to add a shortcut:

<element name="topLevel">
  <include href="relaxCore.trex" start="ref.label"/>
</element>

> I believe this also
> slows down grammar parsing because validator has to read relaxCore.trex
> every time I use <include> pattern.

It is easy for a parser to avoid rereading for an include at the pattern
level.  It's a bit harder for a grammar level include.

> Is this worth raising as an issue?

I guess so.

James
Next in thread → Next in month →