🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10140

Re: XML Schema - deklaracje rekurencyjne

#10140
From: szomiz
Date: Fri, 15 May 2009 20:26
34 lines
2667 bytes
Użytkownik "walec51" <walec5@gmail.com> napisał w wiadomości
news:74d78640-2ffd-41bd-9f3a-300682426b10@b1g2000vbc.googlegroups.com...

> Z serii noNamespace.

No to sprobuj:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Block" type="blockDef"/>
    <xs:complexType name="blockDef">
        <xs:choice minOccurs="0" maxOccurs="unbonded">
            <xs:element name="Block" type="blockDef"/>
            <xs:element name="PrintMessage"/>
        </xs:choice>
    </xs:complexType>
</xs:schema>

I _jezeli_ zadziala (a powino, bo wlasnie mam obok taka /noNamespace/
konstrukcje wzbogacona o xs:unique i w msxml'u hula, ze stach) - w ramach
ekspiacji - doczytaj w specyfikacji (albo na tym czacie: bylo) i napisz na
forum milosnikow goldenow, jak i dlaczego bedzie dzialac PrintMessage ;>

> Heh a z tutoriala w3c zapowiadało się że to będzie takie proste :)

Bo to wszystko _na_prawde_ jest proste. Pod warunkiem ze sie zaczyna od
przejrzenia specyfikacji, a nie tutoriala.

Xml schema _podobnie_ jak XSLT ma mniej zdefiniowanych elementow niz dowolna
wersja HTML'a.

Z tym, ze w przypadku schemy zamotanie zagniezdzen i zaleznosci jest do
HTML'a porownywalne.

sz. 
Technical Details
Message-ID: <gukjnb$cgv$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <92ccb06a-5b21-463b-936f-583e472452ba@x6g2000vbg.googlegroups.com> <guiu5f$p94$1@nemesis.news.neostrada.pl> <fd7e2adb-15c2-49a1-a2b7-5fd2f31cdb66@t10g2000vbg.googlegroups.com> <gujcqt$fk5$1@atlantis.news.neostrada.pl> <gujcu9$fsg$1@atlantis.news.neostrada.pl> <6d8c523f-0e8a-440c-9848-40505f2f9509@e20g2000vbc.googlegroups.com> <gukd4b$1ck$1@atlantis.news.neostrada.pl> <74d78640-2ffd-41bd-9f3a-300682426b10@b1g2000vbc.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.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: XML Schema - deklaracje rekurencyjne
Date: Fri, 15 May 2009 22:26:28 +0200
Organization: TP - http://www.tp.pl/
Lines: 36
Message-ID: <gukjnb$cgv$1@nemesis.news.neostrada.pl>
References: <92ccb06a-5b21-463b-936f-583e472452ba@x6g2000vbg.googlegroups.com> <guiu5f$p94$1@nemesis.news.neostrada.pl> <fd7e2adb-15c2-49a1-a2b7-5fd2f31cdb66@t10g2000vbg.googlegroups.com> <gujcqt$fk5$1@atlantis.news.neostrada.pl> <gujcu9$fsg$1@atlantis.news.neostrada.pl> <6d8c523f-0e8a-440c-9848-40505f2f9509@e20g2000vbc.googlegroups.com> <gukd4b$1ck$1@atlantis.news.neostrada.pl> <74d78640-2ffd-41bd-9f3a-300682426b10@b1g2000vbc.googlegroups.com>
Reply-To: "szomiz" <xml@op.pl>
NNTP-Posting-Host: hau2.internetdsl.tpnet.pl
X-Trace: nemesis.news.neostrada.pl 1242419755 12831 79.187.20.2 (15 May 2009 20:35:55 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Fri, 15 May 2009 20:35:55 +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