[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the advantage of RELAX in comparison to Schemas?
- From: Kohsuke KAWAGUCHI <k-kawa@bigfoot.com>
- To: ht@cogsci.ed.ac.uk (Henry S. Thompson), xml-dev@lists.xml.org
- Date: Fri, 02 Mar 2001 16:44:31 -0800
> 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