1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 02:02:16 -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:
Peter Saint-Andre 2010-06-17 18:53:54 +00:00
parent dc04be86df
commit 07d8e35ec8

View File

@ -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 &lt;data/&gt; 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>