mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 00:35:02 -05:00
clarified that type attribute is required only if data element is non-empty
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@4250 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
dc04be86df
commit
07d8e35ec8
@ -221,7 +221,7 @@
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>The value of the 'type' attribute MUST match the syntax specified in &rfc2045;. That is, the value MUST include a top-level media type, the "/" character, and a subtype; in addition, it MAY include one or more optional parameters (e.g., the "audio/ogg" MIME type in the example shown below includes a "codecs" parameter as specified in &rfc4281;). The "type/subtype" string SHOULD be registered in the &ianamedia;, but MAY be an unregistered or yet-to-be-registered value.</td>
|
||||
<td>REQUIRED</td>
|
||||
<td>REQUIRED if the <data/> element is non-empty</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>The following example illustrates the format (line endings are provided for readability only).</p>
|
||||
@ -304,7 +304,7 @@
|
||||
<xs:extension base='xs:base64Binary'>
|
||||
<xs:attribute name='cid' type='xs:string' use='required'/>
|
||||
<xs:attribute name='max-age' type='xs:nonNegativeInteger' use='optional'/>
|
||||
<xs:attribute name='type' type='xs:string' use='required'/>
|
||||
<xs:attribute name='type' type='xs:string' use='optional'/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
|
Loading…
Reference in New Issue
Block a user