🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #9393

XSD - Dwie postacie tego samego elementu.

#9393
From: EN
Date: Wed, 11 Jul 2007 11:38
32 lines
1162 bytes
Witam.

Czy jest możliwe zdefiniowanie w XSD aby poprawnie walidować dwie 
postacie tego samego elementu np. dla:

<adresy>
  <adres ref="..." />
  <adres>
   <ulica> ... </ulica>
   ...
  </adres>
</adresy>


Poprawne adresy:
  <adres ref="..." />
lub:
  <adres>
   <ulica> ... </ulica>
   ...
  </adres>

Adres typu:
<adres ref="..." >
  <ulica>
</adres>
powinien nie przechodzić walidacji.

Dziękuję za pomoc.

pozdrawiam
EN
Technical Details
Message-ID: <f72fkm$b50$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: EN <en@mymail.pl>
Newsgroups: pl.comp.xml
Subject: XSD - Dwie postacie tego samego elementu.
Date: Wed, 11 Jul 2007 13:38:08 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 32
Message-ID: <f72fkm$b50$1@inews.gazeta.pl>
NNTP-Posting-Host: 195.205.169.100
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1184154070 11424 195.205.169.100 (11 Jul 2007 11:41:10 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 11 Jul 2007 11:41:10 +0000 (UTC)
X-User: mynewsaccount
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit