Meeskond "Head isu": Difference between revisions
From ICO wiki
Jump to navigationJump to search
initial |
→XML: add xml source |
||
Line 9: | Line 9: | ||
'''XML''' | '''XML''' | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8" ?> | |||
<?xml-stylesheet type="text/xsl" href="kohvik.xslt"?> | |||
<cafemenus> | |||
<cafes> | |||
<cafe id="1"> | |||
<name>Reval</name> | |||
<address id="1"> | |||
<coordinates long="59.430756" lat="24.74565" /> | |||
<street>Pärnu mnt</street> | |||
<house>271</house> | |||
<houseExtra /> | |||
<city>Tallinn</city> | |||
<!-- country - ISO 3166-1 alpha-2 code - http://en.wikipedia.org/wiki/ISO_3166-2 --> | |||
<country>EE</country> | |||
<zip>10141</zip> | |||
<!-- opened is per location --> | |||
<opened year="2011"> | |||
<weekdays> | |||
<!-- http://en.wikipedia.org/wiki/ISO_8601 --> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">1</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">2</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">3</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">4</weekday> | |||
<weekday begin="09:00:00+03:00" until="21:00:00+03:00">5</weekday> | |||
<weekday begin="10:00:00+03:00" until="15:00:00+03:00">6</weekday> | |||
<weekday isclosed="true">7</weekday> | |||
</weekdays> | |||
<exceptions> | |||
<date isclosed="true">2011-01-01</date> | |||
<date isclosed="true">2011-02-24</date> | |||
<date begin="12:00:00+03:00" until="19:00:00+03:00">2011-02-25</date> | |||
</exceptions> | |||
</opened> | |||
<comment lang="et">Asume kesklinnas Pärnu mnt ja Tatari nurgal.</comment> | |||
</address> | |||
</cafe> | |||
<cafe id="2"> | |||
<name>Reval 2</name> | |||
<address id="1"> | |||
<coordinates long="59.430756" lat="24.74565" /> | |||
<street>Pärnu mnt</street> | |||
<house>271</house> | |||
<houseExtra /> | |||
<city>Tallinn</city> | |||
<!-- country - ISO 3166-1 alpha-2 code - http://en.wikipedia.org/wiki/ISO_3166-2 --> | |||
<country>EE</country> | |||
<zip>10141</zip> | |||
<!-- opened is per location --> | |||
<opened year="2011"> | |||
<weekdays> | |||
<!-- http://en.wikipedia.org/wiki/ISO_8601 --> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">1</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">2</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">3</weekday> | |||
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">4</weekday> | |||
<weekday begin="09:00:00+03:00" until="21:00:00+03:00">5</weekday> | |||
<weekday begin="10:00:00+03:00" until="15:00:00+03:00">6</weekday> | |||
<weekday isclosed="true">7</weekday> | |||
</weekdays> | |||
<exceptions> | |||
<date isclosed="true">2011-01-01</date> | |||
<date isclosed="true">2011-02-24</date> | |||
<date begin="12:00:00+03:00" until="19:00:00+03:00">2011-02-25</date> | |||
</exceptions> | |||
</opened> | |||
<comment lang="et">Asume kesklinnas Pärnu mnt ja Tatari nurgal.</comment> | |||
</address> | |||
</cafe> | |||
</cafes> | |||
<menus> | |||
<menuscafe cafeid="1"> | |||
<!-- currency - ISO 4217 - http://en.wikipedia.org/wiki/ISO_4217 --> | |||
<currency>EUR</currency> | |||
<!-- @lang - ISO 639-1 - http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes --> | |||
<menu lang="et"> | |||
<item type="food" subtype="roast"> | |||
<name>Kiievi kotlett</name> | |||
<!-- @comment - simple comment --> | |||
<price comment="väike">2</price> | |||
<price comment="suur">3</price> | |||
<!-- availability: true/false --> | |||
<availability>true</availability> | |||
<comment>Väiksel portsul üks kotlett, suurel kolm.</comment> | |||
</item> | |||
<item type="drink"> | |||
<name>Piim</name> | |||
<!-- @unit: string,litres --> | |||
<price quantity="0.33" unit="l">0.5</price> | |||
<availability>true</availability> | |||
<comment /> | |||
</item> | |||
<item type="food" subtype="dessert"> | |||
<name>Martsipani tort</name> | |||
<!-- @comment - simple comment --> | |||
<price comment="viil">1</price> | |||
<price quantity="0.8" unit="kg">9</price> | |||
<!-- availability: true/false --> | |||
<availability>true</availability> | |||
<comment>Tordil on valge jänese pilt.</comment> | |||
</item> | |||
</menu> | |||
<benefits> | |||
<benefit isprecent="true" name="ISIC kaart">5</benefit> | |||
<benefit isprecent="true" name="Püsikliendi soodustus">10</benefit> | |||
<benefit isprecent="false" name="Kampaania X soodustus">1.5</benefit> | |||
</benefits> | |||
</menuscafe> | |||
</menus> | |||
</cafemenus> | |||
</source> | </source> | ||
==XML Schema== | ==XML Schema== |
Revision as of 19:36, 14 April 2011
Meeskond
- Liisa Viljaste (Lember)
- Kalev Paju
- Elvin Risti
XML
XML
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="kohvik.xslt"?>
<cafemenus>
<cafes>
<cafe id="1">
<name>Reval</name>
<address id="1">
<coordinates long="59.430756" lat="24.74565" />
<street>Pärnu mnt</street>
<house>271</house>
<houseExtra />
<city>Tallinn</city>
<!-- country - ISO 3166-1 alpha-2 code - http://en.wikipedia.org/wiki/ISO_3166-2 -->
<country>EE</country>
<zip>10141</zip>
<!-- opened is per location -->
<opened year="2011">
<weekdays>
<!-- http://en.wikipedia.org/wiki/ISO_8601 -->
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">1</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">2</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">3</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">4</weekday>
<weekday begin="09:00:00+03:00" until="21:00:00+03:00">5</weekday>
<weekday begin="10:00:00+03:00" until="15:00:00+03:00">6</weekday>
<weekday isclosed="true">7</weekday>
</weekdays>
<exceptions>
<date isclosed="true">2011-01-01</date>
<date isclosed="true">2011-02-24</date>
<date begin="12:00:00+03:00" until="19:00:00+03:00">2011-02-25</date>
</exceptions>
</opened>
<comment lang="et">Asume kesklinnas Pärnu mnt ja Tatari nurgal.</comment>
</address>
</cafe>
<cafe id="2">
<name>Reval 2</name>
<address id="1">
<coordinates long="59.430756" lat="24.74565" />
<street>Pärnu mnt</street>
<house>271</house>
<houseExtra />
<city>Tallinn</city>
<!-- country - ISO 3166-1 alpha-2 code - http://en.wikipedia.org/wiki/ISO_3166-2 -->
<country>EE</country>
<zip>10141</zip>
<!-- opened is per location -->
<opened year="2011">
<weekdays>
<!-- http://en.wikipedia.org/wiki/ISO_8601 -->
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">1</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">2</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">3</weekday>
<weekday begin="09:00:00+03:00" until="19:00:00+03:00">4</weekday>
<weekday begin="09:00:00+03:00" until="21:00:00+03:00">5</weekday>
<weekday begin="10:00:00+03:00" until="15:00:00+03:00">6</weekday>
<weekday isclosed="true">7</weekday>
</weekdays>
<exceptions>
<date isclosed="true">2011-01-01</date>
<date isclosed="true">2011-02-24</date>
<date begin="12:00:00+03:00" until="19:00:00+03:00">2011-02-25</date>
</exceptions>
</opened>
<comment lang="et">Asume kesklinnas Pärnu mnt ja Tatari nurgal.</comment>
</address>
</cafe>
</cafes>
<menus>
<menuscafe cafeid="1">
<!-- currency - ISO 4217 - http://en.wikipedia.org/wiki/ISO_4217 -->
<currency>EUR</currency>
<!-- @lang - ISO 639-1 - http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes -->
<menu lang="et">
<item type="food" subtype="roast">
<name>Kiievi kotlett</name>
<!-- @comment - simple comment -->
<price comment="väike">2</price>
<price comment="suur">3</price>
<!-- availability: true/false -->
<availability>true</availability>
<comment>Väiksel portsul üks kotlett, suurel kolm.</comment>
</item>
<item type="drink">
<name>Piim</name>
<!-- @unit: string,litres -->
<price quantity="0.33" unit="l">0.5</price>
<availability>true</availability>
<comment />
</item>
<item type="food" subtype="dessert">
<name>Martsipani tort</name>
<!-- @comment - simple comment -->
<price comment="viil">1</price>
<price quantity="0.8" unit="kg">9</price>
<!-- availability: true/false -->
<availability>true</availability>
<comment>Tordil on valge jänese pilt.</comment>
</item>
</menu>
<benefits>
<benefit isprecent="true" name="ISIC kaart">5</benefit>
<benefit isprecent="true" name="Püsikliendi soodustus">10</benefit>
<benefit isprecent="false" name="Kampaania X soodustus">1.5</benefit>
</benefits>
</menuscafe>
</menus>
</cafemenus>
XML Schema