<html>
<head>

<title>Type d'attribut NOTATION</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Type d'attribut NOTATION</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<span class="PROGRAMLISTING"><pre><strong class="userinput">... NOTATION (</strong><var class="replaceable">notation</var> <var class="replaceable">[</var><strong class="userinput">|</strong> <var class="replaceable">notation]</var><strong class="userinput">*)</strong> ...</pre></span>
<p>Le m&eacute;canisme de l'attribut <span class="LITERAL">NOTATION</span> permet aux auteurs de document XML d'indiquer que le contenu des caract&egrave;res de certains &eacute;l&eacute;ments ob&eacute;it aux r&egrave;gles d'un langage officiel diff&eacute;rent de XML. Le court exemple de document suivant montre comment utiliser les notations pour sp&eacute;cifier le type de langage de programmation stock&eacute; dans l'&eacute;l&eacute;ment <span class="LITERAL">code_fragment</span>&nbsp;:</p>

<span class="PROGRAMLISTING"><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!DOCTYPE code_fragment
[
&lt;!NOTATION java_code PUBLIC &quot;Java source code&quot;&gt;
&lt;!NOTATION c_code PUBLIC &quot;C source code&quot;&gt;
&lt;!NOTATION perl_code PUBLIC &quot;Perl source code&quot;&gt;
&lt;!ELEMENT code_fragment (#PCDATA)&gt;
&lt;!ATTLIST code_fragment
          code_lang NOTATION (java_code | c_code | perl_code) #REQUIRED&gt;
     
]&gt;
&lt;code_fragment code_lang=&quot;c_code&quot;&gt;
    main( ) { printf(&quot;Hello, world.&quot;); }
&lt;/code_fragment&gt;</pre></span></td></tr>
</table>
</div>
</body>
</html>
