Faire un don ! | | style | statistiques | contactez-nous | plan | lettre d'information

Vous avez demandé le commentaire #770840.

Retourner sur le contenu associé.

Re: Voilà

Posté par ginkyo (page perso, ) le 02/11/2006 à 17:38. (lien). Évalué à 6.

Pour ma part, je ne suis pas trop favorable à utiliser uniquement le xmlns de mozilla, au contraire il serait plus conforme d'utiliser la norme et d'y adjoindre le xmlns de mozilla (et autre) pour les adaptations plus particulières de tel ou tel client.
Un exemple (ici la balise SearchForm est spécifique à Mozilla, grace au préfixe moz déclaré ci-avant) :


<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>COPY-TOP</ShortName>
<Description>Recherche sur le site de COPY-TOP</Description>
<Tags>reprographie</Tags>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Language>fr-FR</Language>
<AdultContent>false</AdultContent>
<Image height="16" width="16" type="image/x-icon">http://www.copytop.com/favicon.ico</Image>
<Url type="text/html" method="POST" template="http://www.copytop.com/recherche.asp">
<Param name="lib_champ_recherche" value="{searchTerms}"/>
</Url>
<moz:SearchForm>http://www.copytop.com/</moz:SearchForm>
</OpenSearchDescription>

--
« Si quis scienter in tantum a vino abstineret ut naturam multum gravaret a culpa immunis non esset. »Saint Thomas d'Aquin, Somme théologique, II-II, 150, 1 ad 1.

[ Répondre ]