🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10137

Re: XML Schema - deklaracje rekurencyjne

#10137
From: szomiz
Date: Fri, 15 May 2009 18:41
36 lines
2947 bytes
Użytkownik "walec51" <walec5@gmail.com> napisał w wiadomości 
news:6d8c523f-0e8a-440c-9848-40505f2f9509@e20g2000vbc.googlegroups.com...

> I otrzymuje wyjątek dla <element name="Block" type="Statement" /> że
> src-resolve.4.2: Error resolving component 'Statement'. It was
> detected that 'Statement' is in namespace 'http://www.w3.org/2001/
> XMLSchema', but components from this namespace are not referenceable
[ciach]
> Moje Sun'owa implementacja walidatora jest skopana ?
> Czy znowu coś robię nie tak?

Nie. To raczej _moja_mania_ zapodawania uproszczonych/schematycznych 
rozwiazan oraz _Twoja_konwencja_ definiowania schemy bez prefiksowania 
schemowych elementow.

To sie moze wydac popieprzone (mimo, ze ma glebszy sens, na ktory ani czas, 
ani miejsce), ale _reguly_ z xml-schema /dzialaja/ *inaczej* przy:

1. <schema xmlns="http://www.w3.org/2001/XMLSchema">...</schema>
2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">...</xsd:schema>
3. <xsd:schema targetNamespace="jakies:uri" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">...</xsd:schema>
4. <xsd:schema targetNamespace="jakies:uri" xmlns="jakies:uri" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">...</xsd:schema>

A jak dodac do tych opcji elementFormDefault, to mozna (bez znajomosci 
niuansow) oszalec. A na pewno sie zniechecic.

Podsumowujac: Twoj dokument ma okreslona przestrzen nazw, czy jest z serii 
"noNamespace"?

Bo glownie od tego zalezy jak napisac scheme, ktorej potrzebujesz i/lub jak 
wziac poprawki na _ewentualne_ problemy z implementacja standardu przez 
konkretna bilblioteke.

sz. 
Technical Details
Message-ID: <gukd4b$1ck$1@atlantis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!wsisiz.edu.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!wsisiz.edu.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 20:41:17 +0200
Organization: TP - http://www.tp.pl/
Lines: 38
Message-ID: <gukd4b$1ck$1@atlantis.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>
Reply-To: "szomiz" <xml@op.pl>
NNTP-Posting-Host: hau2.internetdsl.tpnet.pl
X-Trace: atlantis.news.neostrada.pl 1242413003 1428 79.187.20.2 (15 May 2009 18:43:23 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Fri, 15 May 2009 18:43:23 +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