[Standards] Bits of Binary 'type' REQUIRED

Peter Saint-Andre stpeter at stpeter.im
Thu Jun 17 18:39:45 UTC 2010


On 6/16/10 8:38 PM, Paul Aurich wrote:
> http://xmpp.org/extensions/xep-0231.html#format indicates that the
> 'type' attribute is REQUIRED on the <data/> element, as does the XML
> schema section, but in the examples, it's only included on the returned
> data (which is sensible, a requesting client cannot know what the data
> actually is).
> 
> My opinion is that it's only required on the iq type=result, 

It is REQUIRED if the <data/> element is non-empty. It has no meaning if
the <data/> element is empty (e.g., in an IQ-get).

> but I don't
> have good ideas on an updated schema/text to reflect that.

There's no good way to represent that in XML schema, so we'll simply
change 'required' to 'optional'.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6820 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20100617/82424895/attachment.bin>


More information about the Standards mailing list