[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Type-assignment
- From: Kohsuke KAWAGUCHI <k-kawa@bigfoot.com>
- To: Kohsuke KAWAGUCHI <k-kawa@bigfoot.com>
- Date: Fri, 02 Feb 2001 16:20:06 -0800
One example.
<hedgeRule label="catalyst">
<choice>
<ref label="foo" />
<ref label="bar" />
</choice>
</hedgeRule>
<elementRule label="foo" role="foo">
<hedgeRef label="foo.model" occurs="?" />
</elementRule>
<elementRule label="bar" role="bar">
<hedgeRef label="bar.model" occurs="?" />
</elementRule>
<tag role="foo" name="sharedName" />
<tag role="bar" name="sahredName">
<attribute name="a" />
</tag>
This grammar is ambiguous.
By disambiguation...
Modify "catalyst" to:
-------------------------------------------
<hedgeRule label="catalyst">
<choice>
<ref label="foo.or.bar" />
</choice>
</hedgeRule>
-------------------------------------------
Add following rules:
-------------------------------------------
<elementRule label="foo.or.bar" role="foo">
<hedgeRef label="foo.model" occurs="?" />
</elementRule>
<elementRule label="foo.or.bar" role="bar">
<hedgeRef label="bar.model" occurs="?" />
</elementRule>
-------------------------------------------
Is this correct?
regards,
----------------------
K.Kawaguchi
E-Mail: k-kawa@bigfoot.com