Meeskond "ASP-tastic"

From ICO wiki
Revision as of 22:46, 1 March 2011 by Jkaskmaa (talk | contribs)
Jump to navigationJump to search

Idee

on olemas

Meeskond

  • Indrek Kõue
  • Taivo Türnpu
  • Jarko Kaskmaa

XML

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xml" href="xml.xsl"?>

<schedule>
  <day>
    <date>1299011724</date>
    <item>
      <positionInList>1</positionInList>
      <excercise>asd</excercise>
      <series>1</series>
      <reps>2</reps>
      <time></time>
      <weigth>22</weigth>
      <description>ojee</description>
      <comment>fak</comment>
      <category>
        <muscleGroup>niisama</muscleGroup>
	<muscleGroup>lailihas</muscleGroup>
      </category>
    </item>
    <item>
      <positionInList>2</positionInList>
      <excercise>oodas</excercise>
      <series>11</series>
      <reps>2</reps>
      <time></time>
      <weigth>50</weigth>
      <description>rinnalt</description>
      <comment>kerge</comment>
      <category>
        <muscleGroup>õige</muscleGroup>
	<muscleGroup>rinnalihas</muscleGroup>
	<muscleGroup>triits</muscleGroup>
      </category>
    </item>
  </day>
</schedule>

XML Schema

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schedule">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="day">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="date" type="xs:unsignedInt" />
              <xs:element maxOccurs="unbounded" name="item">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="positionInList" type="xs:unsignedByte" />
                    <xs:element name="excercise" type="xs:string" />
                    <xs:element name="series" type="xs:unsignedByte" />
                    <xs:element name="reps" type="xs:unsignedByte" />
                    <xs:element name="time" />
                    <xs:element name="weigth" type="xs:unsignedByte" />
                    <xs:element name="description" type="xs:string" />
                    <xs:element name="comment" type="xs:string" />
                    <xs:element name="category">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" name="muscleGroup" 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:schema>

Logi

28.02.2011

XML loomine