Article View: pl.comp.xml
Article #10211Re: newbie uczy się XML i XSD
From: jivanmuktaWYTNIJTO
Date: Sat, 25 Jul 2009 12:36
Date: Sat, 25 Jul 2009 12:36
206 lines
10269 bytes
10269 bytes
Przepraszam, napisałem "poniższego" a zapomniałem załączyć. Oto XML i XSD:
<?xml version="1.0" encoding="utf-8"?>
<products>
<product>
<publisherProductId>169</publisherProductId>
<publicationDate>2007-10</publicationDate>
<title>Rada pracownikĂłw w firmie</title>
<info>
Jeżeli firma zatrudnia więcej niż 100 pracowników i nie
działają w niej związki zawodowe,
pracodawca powinien zorganizować wybory rady pracowników - nowego
organu...
</info>
<description>
<p>Jeżeli firma zatrudnia więcej niż 100 pracowników i nie
działają w niej związki zawodowe, pracodawca powinien zorganizować wybory
rady pracowników - nowego organu, z którym będzie konsultował najważniejsze
decyzje ekonomiczne i informował o planach związanych z zatrudnieniem.</p>
<p>Od 24.03.2008 r. obowiązek ten będzie dotyczył także
pracodawców zatrudniających więcej niż 50 pracowników.</p>
<p>Publikacja omawia takie zagadnienia jak:</p>
<ul>
<li>wyłonienie rady we współpracy z pracownikami, także w
sytuacji, gdy w firmie działają związki zawodowe i nie wyłonią rady
pracownikĂłw,</li>
<li>zakres spraw konsultowanych z radÄ…, </li>
<li>zasady ponoszenia kosztĂłw funkcjonowania rady,</li>
<li>zasady ochrony tajemnicy przedsiębiorstwa przez członków
rady,</li>
<li>zakres ochrony pracowniczej członków rady.</li>
</ul>
<p>W publikacji zamieszczono 20 gotowych wzorĂłw dokumentĂłw, ktĂłre
ułatwiają organizowanie wyborów i zapewnią sprawne funkcjonowanie rady.</p>
</description>
<listPrice>47.58</listPrice>
<startTime>2008-02-14T12:10:00+01:00</startTime>
<imageSourceUrl>http://static.virtualo.pl/products_images/large/159.jpg</imageSourceUrl>
<permissions>
<display />
<excerpt />
<print>
<count initial="10" max="20" incrementalInterval="3600" />
</print>
</permissions>
<publisherCategories>
<categoryId>100</categoryId>
<categoryId>102</categoryId>
</publisherCategories>
<files>
<file>
<index>1</index>
<name>Rada pracownikĂłw w firmie</name>
<format>PDF</format>
<drm>Adobe</drm>
<language>PL</language>
<isbn>978-83-255-0110-5</isbn>
<authors>
<author>Przemysław Ciszek</author>
<author>Maciej Chakowski</author>
</authors>
</file>
<file>
<index>2</index>
<metaIndex>1</metaIndex>
<sourceIndex>1</sourceIndex>
<format>ONLINE</format>
</file>
<file>
<index>3</index>
<metaIndex>1</metaIndex>
<name>Rada pracownikĂłw w firmie - fragment</name>
<isFree>true</isFree>
<fragmentStart>20</fragmentStart>
<fragmentLength>10</fragmentLength>
</file>
<file>
<index>4</index>
<metaIndex>3</metaIndex>
<sourceIndex>2</sourceIndex>
<format>ONLINE</format>
<translators>
<translator>Maciej Chakowski</translator>
</translators>
</file>
</files>
</product>
</products>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="products">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="product">
<xs:complexType>
<xs:sequence>
<xs:element name="publisherProductId" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1" name="publicationDate"
type="yyyymmdd" />
<xs:element minOccurs="0" maxOccurs="1" name="title"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="info"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="tags"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="description" />
<xs:element minOccurs="0" maxOccurs="1" name="tableOfContents" />
<xs:element minOccurs="0" maxOccurs="1" name="promoStartTime"
type="xs:timeInstant" />
<xs:element minOccurs="0" maxOccurs="1" name="promoEndTime"
type="xs:timeInstant" />
<xs:element minOccurs="0" maxOccurs="1" name="promoPrice"
type="xs:decimal" />
<xs:element minOccurs="0" maxOccurs="1" name="listPrice"
type="xs:decimal" />
<xs:element minOccurs="0" maxOccurs="1" name="monthlyPrice"
type="xs:decimal" />
<xs:element minOccurs="0" maxOccurs="1" name="weeklyPrice"
type="xs:decimal" />
<xs:element minOccurs="0" maxOccurs="1" name="dailyPrice"
type="xs:decimal" />
<xs:element minOccurs="0" maxOccurs="1" name="startTime"
type="xs:timeInstant" />
<xs:element minOccurs="0" maxOccurs="1" name="endTime"
type="xs:timeInstant" />
<xs:element minOccurs="0" maxOccurs="1" name="imageSourceUrl"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="permissions" />
<xs:element minOccurs="0" name="publisherCategories">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded"
name="categoryId" type="xs:integer" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="files">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="file">
<xs:complexType>
<xs:sequence>
<xs:element name="index" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1"
name="metaIndex" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1"
name="sourceIndex" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1" name="name"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="info"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="format"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="drm"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1"
name="language" type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="isbn"
type="xs:string" />
<xs:element minOccurs="0" maxOccurs="1" name="isFree"
type="xs:boolean" />
<xs:element minOccurs="0" maxOccurs="1"
name="fragmentStart" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1"
name="fragmentLength" type="xs:integer" />
<xs:element minOccurs="0" maxOccurs="1" name="authors">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded"
name="author" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1"
name="translators">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded"
name="translator" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="yyyymmdd">
<xs:restriction base="xs:string">
<xs:pattern value="\d{4}(-\d{2})?(-d{2})?"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
--
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID:
<0560.00000398.4a6afc3d@newsgate.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsgate1.onet.pl!niusy.onet.plReferences:
<0560.00000388.4a6ac3a6@newsgate.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsgate1.onet.pl!niusy.onet.pl From: jivanmuktaWYTNIJTO@poczta.onet.pl Newsgroups: pl.comp.xml Subject: Re: newbie uczy się XML i XSD Date: Sat, 25 Jul 2009 14:36:13 +0200 Organization: Onet.pl Lines: 206 Sender: korbka@newsgate1.test.onet.pl Message-ID: <0560.00000398.4a6afc3d@newsgate.onet.pl> References: <0560.00000388.4a6ac3a6@newsgate.onet.pl> NNTP-Posting-Host: newsgate1.onet.pl Mime-Version: 1.0 X-Trace: newsgate1.test.onet.pl 1248525373 1843 213.180.130.17 (25 Jul 2009 12:36:13 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Sat, 25 Jul 2009 12:36:13 +0000 (UTC) X-Mailer: http://niusy.onet.pl X-Forwarded-For: 83.20.187.61, 192.168.243.150 X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit