Professional Documents
Culture Documents
4η Εργασία 2010-2011 ΠΛΗ 23 - Θέμα
4η Εργασία 2010-2011 ΠΛΗ 23 - Θέμα
2009 - 2010
( , 4 8 )
8.5.2011
1
XML/XSL
3 . ,
.
,
. XML
. :
(a) ( 1) XML ,
DTD. ,
XML .
(b) ( 2)
,
XML ( )
XSL. XML
, ,
,
.
(c) ( 3) ,
XML ( ),
XSL,
. ,
,
,
.
(d) ( 4) XML XSL,
XML DTD (a). ,
. ,
(b) .
XSL, DOM.
(d) ( XML ), PHP
(http://gr.php.net/manual/en/refs.xml.php).
1
/ :
DOMDocument (http://gr.php.net/manual/en/class.domdocument.php)
SimpleXML (http://gr.php.net/manual/en/book.simplexml.php).
DOMDocument SimpleXML PHP
UTF-8. ,
iconv().
, DOM XML to DTD
:
http://php.net/manual/en/domdocument.validate.php
XML DTD SimpleXML :
http://www.phpbuilder.com/columns/adam_delves20060719.php3
, JavaScript :
http://www.w3schools.com/dtd/dtd_validation.asp
:
DTD XML
(a)
HTML/PHP (b), (c) (d)
XSL (b), (c)
Screenshots .
:
XML, DTD, DOM, XSL.
:
,
web casts No 8 11, UNIT23 Book2 - HT2 hypertext XML
XSL, PHP 2 CD . ,
..
2
HTTP Caching
, HTTP
caching browsers .
1
http://www.city.com/.
http://www.naftemporiki.gr/
2
web server . Caching
: PC , /
proxy / .
3
70 , 10
0.8 sec , 14 3.2 sec,
18 8.2 sec
.
:
(a) : (i) PC , (ii) /
, (iii) proxy / ;
(b) caching ;
(c)
proxy /
;
3
http://www.naftemporiki.gr/ 2.33 sec
server 4.8 Mbps.
4
(a) Content Delivery Networks (CDNs).
(b) ;
:
Internet HTTP, caching,
.
:
, 5 6
..
1 ()
1
2
3
4
2 ()
1
2
3
4
70
10
20
25
15
30
10
10
6
4
100
10, .