Create XML Schema Pages
The following is the simple example of xml. In this code, Demo is a root element. It contains a sequence of elements, A followed by B. This code also tells us that A and B both contains an integer.
Simple XML
<?xml version="1.0"?>
<Demo xmlns="http://www.demo.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.demo.org demo.xsd">
<A>10</A>
<B>20</B>
</Demo>
XML Schema
The code, which is given below, is XML Schema expression for the previous code.
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.demo.org"
xmlns="http://www.demo.org"
elementFormDefault="qualified">
<xsd:element name="Demo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="A" type="xsd:integer"/>
<xsd:element name="B" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
In the code, Demo is a complex type because it contains other elements such as A and B. Other elements are simple type because they do not contain other elements.
Mind Mapping
* CSUEB_Homepage.jpeg:
Simple XML:Mind Map
This is simple xml code of an example which is explained by using mind map above.
<?xml version="1.0" encoding="ISO-8859-1"?>
<csueb>
<forstudent>
<onlineservice>
<mycsueb>
<studentinfo>This provides student information</studentinfo>
<schcatlink> This provides schedule and catalog links </schcatlink>
<studrec> This provides student record services</studrec>
</mycsueb>
<blackboard>
<mycourse> This link provide my courses information </mycourse>
<grade>view grade by this link </grade>
</blackborad>
<horzion> This is link to Horzion mail </horzion>
</onlineservice
</forstudent>
</csueb>
XML Schema:MindMap
This is xml schema code of an example which is used for mind map.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="CSUEBHompage">
<xs:complexType>
<xs:sequence>
<xs:element name="ForStudent" >
<xs:complexType>
<xs:sequence>
<xs:element name = "OnlineService">
<xs:complexType>
<xs:sequence>
<xs:element name ="MyCSUEB">
<xs:complexType>
<xs:sequence>
<xs:element name ="StudentInfo" type="xs:string"/>
<xs:element name ="Schedule&CatalogLinks" type="xs:string"/>
<xs:element name ="StudentRecordService" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name ="Blackborad">
<xs:complexType>
<xs:sequence>
<xs:element name ="MyCourses" type="xs:string"/>
<xs:element name ="ViewGrade" type="xs:long"/>
</xs:sequence>
</xs:complexType>
<xs:element name="HorzionMail" type="xs:string"/>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I choose to create my own example in order to write xml and xml schema code. I think in that way i can learn more rather than using the example which is given in xml schema tutorial. I face some problems when i am writing xml schema code because in tutorial we did not have this kind of example. In tutorial, we have root element->child elements. However, in my example, i have the following pattern/tree: root elements--> child--> gchild-->hchild1,hchild2,hchild3. Then there three,hchild1 to hchild3, also have child. This is very complex tree. However, I have great experience,and i learn a lot.
I will write code for the mind map example later. I am planning to do part 1 and 2 of Step 1 later.
Vocabulary
Dialect
Merriam Webster Definition: A regional variety of language distinguished by features of vocabulary, grammar, and pronunciation from other regional varieties and constituting together with them a single language.
Logic Definition:Any form of speech considered as deviating from a real or imaginary standard speech.
Dicourse Community
Wikipedia Definition: The term discourse community links the terms discourse, a concept describing all forms of communication that contribute to a particular, institutionalized way of thinking; and community, which in this case refers to the people who use, and therefore help create, a particular discourse.
Logic Definition:The term discourse has several definitions. In the study of language, discourse often refers to the speech patterns and usage of language, dialects, and acceptable statements, within a community. It is a subject of study in peoples who live in secluded areas and share similar speech conventions.
Reflexive Questions
Question 1
To prepare for this lab, i did some prep work. I read the tutorial of XML Schema, HTML, and XML on www.w3schools.com. Then I made up some example code for xml and xml schema. Then i move to next point of the lab in which i have to create the abstract model. For my abstract, i consider many example such as creating abstract model for shopping list,type of food list. However, at the end i decided to create the abstract model which is related to everybody in this class who might read my lab. Thus, i choose to create the abstract model on CSUEB Homepage. After creating it, then i wrote xml and xml schema code. After that, i download firefox2 and validate my codes. If i compare prep lab for this class to my other class's prep lab such as chemistry lab. It is almost same. In order to prepare for chemistry lab, i solve equations and read how to run the reaction. Sometimes i have to do some calculation before running the experiment. As in this class, we read tutorial before creating our own xml schema code and abstract model.
Question 2
In my point view, my style is for both web developer and interaction designer. In web developer point view, I designed the xml code. In addition, I create the xml schema which was based on the xml tree structure. However, at the same time, I looked at the CSUEB Homepage from user point of view (user-mode). The user can use this abstract model to find how to get the information like blackboard and horizon mail.