On Wed, Aug 20, 2008 at 08:40:16AM -0600, Peter Saint-Andre wrote:
> Jonathan Schleifer wrote:
>> Am 20.08.2008 um 05:16 schrieb Peter Saint-Andre:
>>> Matthew Wild wrote:
>>>
>>>> How about:
>>>>   <activity xmlns='http://jabber.org/protocol/activity'>
>>>>     <other>
>>>>           <charging xmlns='http://robotic-lawn-mower.example.org/' />
>>>>     </other>
>>>>   </activity>
>>>
>>> That's already allowed, no?
>> Not exactly. But this would:
>> <activity xmlns='http://jabber.org/protocol/activity'>
>>   <other xmlns='http://robotic-lawn-mower.example.org/activity'>
>>     <charging/>
>>   </other>
>> </activity>
>
> XEP-0108 already includes the <other/> element. So the first example is 
> correct, not the second.

XEP-0108 says:

    In addition, the *specific* activity element can be <other/> in order to
    handle activities not defined herein.

I read that to mean that you can do:

    <activity><eating><other/></eating></activity>

but not:

    <activity><other><something-else-entirely/></other></activity>

Is that incorrect? I'm not fluent in XML Schema.

Attachment: pgpS7XqrFa0tf.pgp
Description: PGP signature

Reply via email to