🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10014

Re: xsd pytanie

#10014
From: szomiz
Date: Thu, 20 Nov 2008 19:01
28 lines
1742 bytes
Użytkownik "Filip Rembiałkowski" <plk.zuber@gmail.com> napisał w wiadomości 
news:gg46pv$ehu$1@nemesis.news.neostrada.pl...
>
> 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" />

Nie da sie zrobic czegos takiego. Mozna (nieelegancko) kombinowac w 
przypadku, ze _albo_ @id _albo_ @nazwa.

> ale NIE zezwalała na
> <instrument />

A to juz kompletnie bez szans.

> <zestaw-instrumentow>
>  <instrument id="1" />
>  <instrument id="1" name="bęben" />
> </zestaw-instrumentow>

xs:unique

sz. 
Technical Details
Message-ID: <gg4cl9$ngl$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.task.gda.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <gg46pv$ehu$1@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!news.task.gda.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: "szomiz" <szomiz@kocha.dostawac.reklamy.przez.net>
Newsgroups: pl.comp.xml
Subject: Re: xsd pytanie
Date: Thu, 20 Nov 2008 20:01:16 +0100
Organization: TP - http://www.tp.pl/
Lines: 30
Message-ID: <gg4cl9$ngl$1@nemesis.news.neostrada.pl>
References: <gg46pv$ehu$1@nemesis.news.neostrada.pl>
Reply-To: "szomiz" <xml@op.pl>
NNTP-Posting-Host: hau2.internetdsl.tpnet.pl
X-Trace: nemesis.news.neostrada.pl 1227208170 24085 79.187.20.2 (20 Nov 2008 19:09:30 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Thu, 20 Nov 2008 19:09:30 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Original
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit