Givela: Difference between revisions
From ICO wiki
Jump to navigationJump to search
Line 98: | Line 98: | ||
===XSLT=== | ===XSLT=== | ||
<pre> | <pre> | ||
<?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 name="Persons"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element maxOccurs="unbounded" name="Person" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element name="Categories"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element maxOccurs="unbounded" name="Category" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element maxOccurs="unbounded" name="Product"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="Name" type="xs:string" /> | |||
<xs:element name="Person" type="xs:string" /> | |||
<xs:element name="Category" type="xs:string" /> | |||
<xs:element name="ImageUrl" type="xs:string" /> | |||
<xs:element name="Comments"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element maxOccurs="unbounded" name="Comment" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:schema> | |||
</pre> | </pre> | ||
== Logi == | == Logi == | ||
#09.03.16 - Esimene kohtumine | #09.03.16 - Esimene kohtumine |
Revision as of 13:34, 16 March 2016
Kodutöö aines "Võrgurakendused II: hajussüsteemide ehitamine"
Meeskond
- Mikk Raudsepp
- Alar Ameerikas
- Vladimir Rõkovanov
Idee
XML/XSD/XSLT
XML
<?xml version="1.0" encoding="utf-8" ?> <Products> <Persons> <Person><![CDATA[Mikk]]></Person> <Person><![CDATA[Alar]]></Person> <Person><![CDATA[Vladimir]]></Person> </Persons> <Categories> <Category><![CDATA[Riided]]></Category> <Category><![CDATA[Köögitehnika]]></Category> </Categories> <Product> <Name><![CDATA[Siidisukad 160]]></Name> <Person><![CDATA[Mikk]]></Person> <Category><![CDATA[Riided]]></Category> <ImageUrl>http://enos.itcollege.ee/~vrokovan/haju/sukad.jpg</ImageUrl> <Comments> <Comment><![CDATA[Kus asute?]]></Comment> <Comment><![CDATA[Kas on uued või kasutatud]]></Comment> </Comments> </Product> <Product> <Name><![CDATA[Külmkapp]]></Name> <Person><![CDATA[Alar]]></Person> <Category><![CDATA[Köögitehnika]]></Category> <ImageUrl>http://enos.itcollege.ee/~vrokovan/haju/kylmik.jpg</ImageUrl> <Comments> <Comment><![CDATA[Saatke mõõdud palun]]></Comment> <Comment><![CDATA[kui vana külmkapp on?]]></Comment> </Comments> </Product> <Product> <Name><![CDATA[Veekeetja]]></Name> <Person><![CDATA[Vladimir]]></Person> <Category><![CDATA[Köögitehnika]]></Category> <ImageUrl>http://enos.itcollege.ee/~vrokovan/haju/keetja.jpg</ImageUrl> <Comments> <Comment><![CDATA[Kas on töökorras?]]></Comment> <Comment><![CDATA[mitme liitrine on?]]></Comment> </Comments> </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 name="Persons"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Person" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Categories"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Category" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="Product"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string" /> <xs:element name="Person" type="xs:string" /> <xs:element name="Category" type="xs:string" /> <xs:element name="ImageUrl" type="xs:string" /> <xs:element name="Comments"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Comment" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
</xs:schema>
XSLT
<?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 name="Persons"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Person" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Categories"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Category" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element maxOccurs="unbounded" name="Product"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string" /> <xs:element name="Person" type="xs:string" /> <xs:element name="Category" type="xs:string" /> <xs:element name="ImageUrl" type="xs:string" /> <xs:element name="Comments"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Comment" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Logi
- 09.03.16 - Esimene kohtumine