🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10013

xsd pytanie

#10013
From: Filip Rembiałkowski
Date: Thu, 20 Nov 2008 17:22
25 lines
1641 bytes
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>
Technical Details
Message-ID: <gg46pv$ehu$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!plix.pl!newsfeed1.plix.pl!wsisiz.edu.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!plix.pl!newsfeed1.plix.pl!wsisiz.edu.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: Filip Rembiałkowski <plk.zuber@gmail.com>
Newsgroups: pl.comp.xml
Subject: xsd pytanie
Date: Thu, 20 Nov 2008 18:22:56 +0100
Organization: TP - http://www.tp.pl/
Lines: 26
Message-ID: <gg46pv$ehu$1@nemesis.news.neostrada.pl>
NNTP-Posting-Host: 213.77.0.70
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1227202175 14910 213.77.0.70 (20 Nov 2008 17:29:35 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Thu, 20 Nov 2008 17:29:35 +0000 (UTC)
User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)
X-Enigmail-Version: 0.95.0
OpenPGP: id=09D71A43
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit