1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
|
<!DOCTYPE html>
<html>
<head>
<title>Webbprogrammering DA330G</title>
<style>
.group
{
display: block;
padding: 1em;
width: 100%;
margin: auto auto;
font-family: "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif;
}
.group h1
{
font-weight: normal;
font-size: 1.8em;
margin-bottom: 1em;
font-family: Cambria, Georgia, serif;
}
.group .info
{
padding: 0.4em;
margin: 0.5em;
font-size: 1em;
color: #000;
}
.group .info:first-letter
{
font-size:1.3em;
}
.group h2
{
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
border-bottom: 2px solid #000;
color: #fff;
background: #c0d0e0;
background-color: #c0d0e0;
text-shadow: 1px 1px 2px #000;
font-weight:normal;
background: linear-gradient(to top, #abc 10%, #89a 90%, #678 99% );
background: -webkit-linear-gradient(bottom, #abc 10%, #89a 90%, #678 99%);
background: -moz-linear-gradient(bottom, #abc 10%, #89a 90%, #678 99%);
font-size: 1.4em;
margin-top: 1em;
margin-bottom: 0;
padding:3px;
padding-left:20px;
}
a
{
line-height: 2em;
margin-left: 1.3em;
color: black;
text-decoration: underline;
font-size: 1em;
}
li
{
color: #555;
}
a:hover
{
text-decoration: none;
}
.container
{
border-left: 2px dotted #ddd;
margin-left: 8px;
}
.container .demo
{
float:right;
}
body{
margin:0;
}
#menu
{
position:fixed;
top:40px;
width:10.5%;
padding: 10px 0 1% 0.3%;
background: #c0d0e0;
background-color: #c0d0e0;
border-bottom-right-radius: 1.3em;
border-top-right-radius: 1.3em;
border-bottom: 2px solid #000;
border-right: 1px solid #000;
color: #fff;
text-shadow: 1px 1px 2px #000;
font-weight:bolder;
background:#678;
background-color:#678;
background: linear-gradient(to top, #abc 10%, #89a 90%, #678 99% );
background: -webkit-linear-gradient(bottom, #abc 10%, #89a 90%, #678 99%);
background: -moz-linear-gradient(bottom, #abc 10%, #89a 90%, #678 99%);
}
#menu #menuHeader{
margin:0 0 1.5% 0;
background:#333333;
width:97%;
height:31px;
padding-left:10px;
margin-left:-10px;
border-radius: 0 10px 10px 0
}
#menuHeader h3{
float:left;
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
font-size:1.2em;
background-color:#333;
color:#fff;
width:80%;
margin-top:4px;
padding:0;
}
#menuArrow{
float:left;
padding:0;
margin-top:8px;
width:15%;
}
#menu a{
display:block;color:#fff;
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
text-decoration: none;
margin-left:1%;
font-size:100%
}
#menu a:hover{
font-weight:bolder;
text-decoration:underline;
}
#menuItems{
float:left;
width:80%;
}
#sidebar{
float:left;
min-width:11%;
min-height:100px;
overflow:auto;
}
#content{
float:left;
width:75%;
}
</style>
</script>
</head>
<body>
<div id="sidebar">
<div id="menu">
<div id="menuHeader">
<h3>Quick links</h3>
</div>
<div id="menuItems">
<a href="#LectureSlides" class="menuLink">Lectures</a>
<a href="#Assignments" class="menuLink">Assignments</a>
<br>
<a href="#PHPIntro" class="menuLink">PHP Intro</a>
<a href="#SAXExamples" class="menuLink">SAX</a>
<a href="#DOMExamples" class="menuLink">DOM</a>
<a href="#XSLTExamples" class="menuLink">XSLT</a>
<a href="#NamespaceExamples" class="menuLink">Namespaces</a>
<a href="#Tips" class="menuLink">Tips</a>
</div>
</div>
</div>
<div id="content">
<div class="group">
<h1>Lectures and Assignments</h1>
<h2 id="LectureSlides">Lecture Slides</h2>
<div class="container">
</div>
<h2 id="Assignments">Assignments</h2>
<div class="container">
<a href='Assignment1a/Assignment1a.php'>Assignment 1A: PHP Forms and simple Arrays</a><br>
<a href='Assignment1b/Assignment1b.php'>Assignment 1B: PHP Arrays and Tables</a><br>
<a href='Assignment2/Assignment2.php'>Assignment 2: SAX API</a><br>
<a href='Assignment3/Assignment3.php'>Assignment 3: DOM API</a><br>
<a href='Assignment4/Assignment4.php'>Assignment 4: DOM Validation</a><br>
<a href='Assignment5/Assignment5.php'>Assignment 5: DOM XPATH</a><br>
<a href='Assignment6/Assignment6.php'>Assignment 6: XSLT Iteration</a><br>
<a href='Assignment7/Assignment7.php'>Assignment 7: XSLT Recursive Templates</a><br>
<a href='Assignment8/Assignment8.php'>Assignment 8: Main Assignment</a><br>
</div>
</div> <!---- End Group div ---->
<div class="group">
<h1>Code Examples</h1>
<h2 id="PHPIntro">PHP Introduction</h2>
<div class="container">
<a href='IntroExample1/IntroExample1.php'>Introduction Example 1: PHP Startup</a><br>
<a href='IntroExample2/IntroExample2.php'>Introduction Example 2: PHP Startup</a><br>
<a href='IntroExample3/IntroExample3.php'>Introduction Example 3: PHP Variables</a><br>
<a href='IntroExample4/IntroExample4.php'>Introduction Example 4: Arrays #1</a><br>
<a href='IntroExample5/IntroExample5.php'>Introduction Example 5: Arrays #2</a><br>
<a href='IntroExample6/IntroExample6.php'>Introduction Example 6: Arrays #3</a><br>
<a href='IntroExample7/IntroExample7.php'>Introduction Example 7: Forms #1</a><br>
<a href='IntroExample8/IntroExample8.php'>Introduction Example 8: Forms #2</a><br>
<a href='IntroExample9/IntroExample9.php'>Introduction Example 9: Forms #3</a><br>
<a href='IntroExample10/IntroExample10.php'>Introduction Example 10: Forms #4</a><br>
<a href='IntroExample11/IntroExample11.php'>Introduction Example 11: Forms #5</a><br>
<a href='IntroExample12/IntroExample12.php'>Introduction Example 12: Tables #1</a><br>
<a href='IntroExample13/IntroExample13.php'>Introduction Example 13: Tables #2</a><br>
</div>
<h2 id="SAXExamples">SAX Examples</h2>
<div class="container">
<a href='SAXExample1a/SAXExample1a.php'>SAX Example 1: Sax Initiation</a><br>
<a href='SAXExample1b/SAXExample1b.php'>SAX Example 2: Removal of White Space Tags</a><br>
<a href='SAXExample1c/SAXExample1c.php'>SAX Example 3: Printing of attributes </a><br>
<a href='SAXExample1d/SAXExample1d.php'>SAX Example 4: Print formatting</a><br>
<a href='SAXExample1e/SAXExample1e.php'>SAX Example 5: Print formatting</a><br>
<a href='SAXExample1f/SAXExample1f.php'>SAX Example 6: Indentation</a><br>
</div>
<h2 id="DOMExamples">DOM Examples</h2>
<div class="container">
<a href='DOMExample1/DOMExample1.php'>DOM Example 1: Initiation and simple navigation</a><br>
<a href='DOMExample1b/DOMExample1b.php'>DOM Example 2: Attribute navigation</a><br>
<a href='DOMExample1c/DOMExample1c.php'>DOM Example 3: Advanced navigation</a><br>
<a href='DOMExample1d/DOMExample1d.php'>DOM Example 4: Advanced navigation</a><br>
<a href='DOMExample2/DOMExample2.php'>DOM Example 5: Validation #1</a><br>
<a href='DOMExample2b/DOMExample2b.php'>DOM Example 6: Validation #2</a><br>
<a href='DOMExample2c/DOMExample2c.php'>DOM Example 7: Validation #3</a><br>
<a href='DOMExample2d/DOMExample2d.php'>DOM Example 8: Validation #4</a><br>
<a href='DOMExample2e/DOMExample2e.php'>DOM Example 9: Validation #5 </a><br>
<a href='DOMExample3/DOMExample3.php'>DOM Example 10: XPATH #1</a><br>
<a href='DOMExample3b/DOMExample3b.php'>DOM Example 11: XPATH #2 Context Nodes</a><br>
</div>
<h2 id="XSLTExamples">XSLT Examples</h2>
<div class="container">
<a href='XSLTExample1/XSLTExample1.php'>XSLT Example 1: Template Match</a><br>
<a href='XSLTExample2/XSLTExample2.php'>XSLT Example 2: Simple Navigation</a><br>
<a href='XSLTExample3/XSLTExample3.php'>XSLT Example 3: Nested Navigation</a><br>
<a href='XSLTExample4/XSLTExample4.php'>XSLT Example 4: Conditionals</a><br>
<a href='XSLTExample5/XSLTExample5.php'>XSLT Example 5: Simple Template Match</a><br>
<a href='XSLTExample6/XSLTExample6.php'>XSLT Example 6: Simple Template Match</a><br>
<a href='XSLTExample7/XSLTExample7.php'>XSLT Example 7: Keys</a><br>
<a href='XSLTExample8a/XSLTExample8a.php'>XSLT Example 8a: Simple Sorting</a><br>
<a href='XSLTExample8b/XSLTExample8b.php'>XSLT Example 8b: Grouping using keys</a><br>
<a href='XSLTExample9/XSLTExample9.php'>XSLT Example 9: Grouping</a><br>
<a href='XSLTExample10/XSLTExample10.php'>XSLT Example 10: Variables</a><br>
</div>
<h2 id="NamespaceExamples">Namespace Examples</h2>
<div class="container">
<a href='NamespaceExample1/NamespaceExample1.php'>Namespace Example 1: Sax API</a><br>
<a href='NamespaceExample2/NamespaceExample2.php'>Namespace Example 2: DOM API</a><br>
<a href='NamespaceExample3/NamespaceExample3.php'>Namespace Example 3: DOM API with XPATH</a><br>
<a href='NamespaceExample4/NamespaceExample4.php'>Namespace Example 4: XSLT</a><br>
</div>
<h2 id="Tips">Tips and Tricks</h2>
<div class="container">
</div>
</div> <!---- End Group div ---->
</div>
</body>
</html>
|