← Prev in month ← Prev in thread

Closure under difference

From
James Clark <>
Date
2001-06-15T08:10:02+00:00
ID
115201c0f572$49441790$
Thread
Closure under difference
I am having a hard time seeing why the constraint on <data> causes RELAX NG
not to be closed under difference.  I am not convinced we are closed at the
moment, but the constraint doesn't seem to make things worse.  The hardest
case I have found is:

<difference>
  <mixed>
    <element name="foo"/>
      <empty/>
    </element>
  </mixed>
  <data type="int"/>
</difference>

but this is equivalent to:

<choice>
  <difference>
    <mixed>
      <element name="foo"/>
        <empty/>
      </element>
    </mixed>
    <text/>
  </difference>
  <difference>
    <data type="string"/>
    <data type="int"/>
  </difference>
</choice>

and I can't see that the proposed restriction affects either:

  <difference>
    <mixed>
      <element name="foo"/>
        <empty/>
      </element>
    </mixed>
    <text/>
  </difference>

or

  <difference>
    <data type="string"/>
    <data type="int"/>
  </difference>

James
← Prev in month ← Prev in thread