no save
Assistance
Achat
News

Forum | programmation
DTD pb
GWE, le mar. 10 oct. 2006 à 11:17:45
salam

quel est la difference entre (( author +) |(editor +)) et
(author |editor) + ?????

merci


Dans le 1er cas, ton élément peut contenir 1 ou plusieurs author OU 1 ou plusieurs editor, mais pas les 2 à la fois.

Dans le 2ème exemple, ça signifie que chaque élément peut être author ou editor.

Concretement, voici ce que ça peut donner.

<!ELEMENT livre (author+ | editor +)>
...
<livre>
<author>.......</author>
<author>.......</author>
<author>.......</author>
....
...
<author>.......</author>
</livre>


La même chose est valable avec editor.

<!ELEMENT livre (author+ | editor +)>
...
<livre>
<editor>.......</editor>
<editor>.......</editor>
<editor>.......</editor>
....
...
<editor>.......</editor>
</livre>




Par contre, le 2eme exemple est un mélange de author et de editor.

<!ELEMENT livre (author | editor )+>
...
<livre>
<editor>.......</editor>
<editor>.......</editor>
<author>.......</author>
<editor>.......</editor>
<author>.......</author>
<author>.......</author>
<author>.......</author>
<author>.......</author>
....
...
<editor>.......</editor>
</livre>


J'espère que j'ai été suffisamment clair et que ça a pu t'aider.
PrécédentHAMZA
janv. 05
eleni
oct. 06
Suivant
REPONSES
GWE
oct. 06
eleni
oct. 06
Version Web
Réalisé par RedShift
no save