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: Type-assignment



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