OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the advantage of RELAX in comparison to Schemas?




> W3C XML Schema doesn't support this, true.  I'm not a RELAX expert,
> but I don't it does either.

  RELAX can handle this in this way.


<elementRule label="foo">
  <tag name="foo">
    <attribute name="class">
      <enumeration value="abc" />
    </attribute>
  </tag>

  ... content model for <foo class="abc"> ...
</elementRule>



<elementRule label="foo">
  <tag name="foo">
    <attribute name="class">
      <enumeration value="def" />
    </attribute>
  </tag>

  ... content model for <foo class="def"> ...
</elementRule>


regards,
----------------------
K.Kawaguchi
E-Mail: k-kawa@bigfoot.com