Re: Issue: redefinitions and order-significance

From
Kohsuke KAWAGUCHI <>
Date
2001-04-25T17:17:33+00:00
ID
Thread
Re: Issue: redefinitions and order-significance
> Another entirely different approach to make XHTML m12n easy is to allow
> multiple patterns to share the name --- just like RELAX --- and treats
> them as if they are embraced in choices. This will keep order of
> definitions insignificant and still makes XHTML m12n easy.

It certainly makes it easy (as shown below), but not easy enough,
because we can't add attributes.


head module

<define name="head.opts">
  <empty />
</define>

<define name="head">
  <element name="head">
    <ref name="head.attributes" />
    <interleave>
      <zeroOrMore>
        <ref name="head.opts" />
      </zeroOrMore>
      <ref name="title" />
    </interleave>
  </element>
</define>


script module:

<define name="head.opts">
  <ref name="script" />
</define>



--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems