Article View: pl.comp.xml
Article #10136Re: XML Schema - deklaracje rekurencyjne
From: walec51
Date: Fri, 15 May 2009 18:09
Date: Fri, 15 May 2009 18:09
34 lines
2662 bytes
2662 bytes
Dzięki za szybką odpowiedź! Jednak po zaaplikowaniu tych zmian nadal mam podobny problem. Teraz mój xsd wygląda tak: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema"> <element name="Block" type="Statement" /> <complexType name="Statement"> <choice> <element name="Block" type="Statement" minOccurs="0" /> <element name="PrintMessage" minOccurs="0" /> </choice> </complexType> </schema> 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 from schema document 'file:/home/awalczak/workspace/xmlstacks/bin/info/ adamwalczak/xmlstacks/res/lang.xsd'. If this is the incorrect namespace, perhaps the prefix of 'Statement' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/home/awalczak/workspace/xmlstacks/bin/info/ adamwalczak/xmlstacks/res/lang.xsd'. Moje Sun'owa implementacja walidatora jest skopana ? Czy znowu coś robię nie tak?
Technical Details
Message-ID:
<6d8c523f-0e8a-440c-9848-40505f2f9509@e20g2000vbc.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!e20g2000vbc.googlegroups.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!e20g2000vbc.googlegroups.com!not-for-mail From: walec51 <walec5@gmail.com> Newsgroups: pl.comp.xml Subject: Re: XML Schema - deklaracje rekurencyjne Date: Fri, 15 May 2009 11:09:39 -0700 (PDT) Organization: http://groups.google.com Lines: 35 Message-ID: <6d8c523f-0e8a-440c-9848-40505f2f9509@e20g2000vbc.googlegroups.com> 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> NNTP-Posting-Host: 79.184.21.209 Mime-Version: 1.0 X-Trace: posting.google.com 1242410979 5470 127.0.0.1 (15 May 2009 18:09:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 15 May 2009 18:09:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e20g2000vbc.googlegroups.com; posting-host=79.184.21.209; posting-account=9tq4iAoAAADadWm4WtMyxhLBjM0ShnOA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10,gzip(gfe),gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit