W3C home > Mailing lists > Public > public-webapi@w3.org > February 2006

[REX] Repeated IDs in a REX message

From: Cameron McCormack <cam-public-webapi@aka.mcc.id.au>
Date: Sat, 11 Feb 2006 16:26:38 +1100
To: public-webapi@w3.org
Message-ID: <20060211052638.GA4740@port.mcc.id.au>

Hi.

Is it problematic that you may want to use a repeated xml:id on a child
of an 'event' element?  Something like:

  <rex xmlns="http://www.w3.org/2006/rex"
       xmlns:svg="http://www.w3.org/2000/svg">
    <event target="id('c')" name="DOMNodeRemoved">
      <svg:circle xml:id="c" cx="100" cy="200" r="5"/>
    </event>
    <event target="id('c')" name="DOMNodeRemoved">
      <svg:rect xml:id="c" x="95" y="195" width="10" height="10"/>
    </event>
  </rex>

The REX message document then has an xml:id error.  I don't think it is
inconceivable that you would have multiple replacements of an element
with an ID, especially if the events are being streamed over a period
of time.

Thanks,

Cameron

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org
Received on Saturday, 11 February 2006 06:10:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT