xsd pytanie
[ Nouvelle discussion
| Répondre au groupe
|
pl.comp.xml ]
Czy można zrobić tak żeby element <instrument> musiał mieć atrybut id lub
atrybut nazwa?
tzn. żeby schema zezwalała na
<instrument id="1" />
<instrument nazwa="fortepian" />
<instrument id="3" name="skrzypce" />
ale NIE zezwalała na
<instrument />
Ponadto chciałbym, aby w ramach rodzica (kontenera), zarówno instrument.id jak
i instrument.nazwa były unikalne.
np. to jest ok:
<zestaw-instrumentow>
<instrument id="1" />
<instrument nazwa="fortepian" />
<instrument id="2" name="skrzypce" />
</zestaw-instrumentow>
ale to już nie:
<zestaw-instrumentow>
<instrument id="1" />
<instrument id="1" name="bęben" />
</zestaw-instrumentow>

|
 cette fonctionnalité est reservée aux membres ayant une session active !
|