Distributed Document-Based Systems Notes | EduRev

: Distributed Document-Based Systems Notes | EduRev

 Page 1


Distributed Document-Based 
Systems
Chapter 11
Page 2


Distributed Document-Based 
Systems
Chapter 11
The World Wide Web
Overall organization of the Web.
Page 3


Distributed Document-Based 
Systems
Chapter 11
The World Wide Web
Overall organization of the Web.
Document Model (1)
A simple Web page embedding a script written in JavaScript.
<HTML> <!- Start of HTML document    -->
<BODY> <!- Start of the main body       -->
<H1>Hello World/H1> <!- Basic text to be displayed   -->
<P> <!- Start of a new paragraph   -->
<SCRIPT type = "text/javascript"> <!- identify scripting language -->
document.writeln ("<H1>Hello World</H1>; // Write a line of text
</SCRIPT> <!- End of scripting section -->
</P> <!- End of paragraph section -->
</BODY> <!- End of main body -->
</HTML> <!- End of HTML section -->
Page 4


Distributed Document-Based 
Systems
Chapter 11
The World Wide Web
Overall organization of the Web.
Document Model (1)
A simple Web page embedding a script written in JavaScript.
<HTML> <!- Start of HTML document    -->
<BODY> <!- Start of the main body       -->
<H1>Hello World/H1> <!- Basic text to be displayed   -->
<P> <!- Start of a new paragraph   -->
<SCRIPT type = "text/javascript"> <!- identify scripting language -->
document.writeln ("<H1>Hello World</H1>; // Write a line of text
</SCRIPT> <!- End of scripting section -->
</P> <!- End of paragraph section -->
</BODY> <!- End of main body -->
</HTML> <!- End of HTML section -->
Document Model (2)
An XML definition for referring to a journal article.
(1) <!ELEMENT article (title, author+,journal)>
(2) <!ELEMENT title (#PCDATA)>
(3) <!ELEMENT author (name, affiliation?)>
(4) <!ELEMENT name (#PCDATA)>
(5) <!ELEMENT affiliation (#PCDATA)>
(6) <!ELEMENT journal (jname, volume, number?, month? pages, year)>
(7) <!ELEMENT jname (#PCDATA)>
(8) <!ELEMENT volume (#PCDATA)>
(9) <!ELEMENT number (#PCDATA)>
(10) <!ELEMENT month (#PCDATA)>
(11) <!ELEMENT pages (#PCDATA)>
(12) <!ELEMENT year (#PCDATA)>
Page 5


Distributed Document-Based 
Systems
Chapter 11
The World Wide Web
Overall organization of the Web.
Document Model (1)
A simple Web page embedding a script written in JavaScript.
<HTML> <!- Start of HTML document    -->
<BODY> <!- Start of the main body       -->
<H1>Hello World/H1> <!- Basic text to be displayed   -->
<P> <!- Start of a new paragraph   -->
<SCRIPT type = "text/javascript"> <!- identify scripting language -->
document.writeln ("<H1>Hello World</H1>; // Write a line of text
</SCRIPT> <!- End of scripting section -->
</P> <!- End of paragraph section -->
</BODY> <!- End of main body -->
</HTML> <!- End of HTML section -->
Document Model (2)
An XML definition for referring to a journal article.
(1) <!ELEMENT article (title, author+,journal)>
(2) <!ELEMENT title (#PCDATA)>
(3) <!ELEMENT author (name, affiliation?)>
(4) <!ELEMENT name (#PCDATA)>
(5) <!ELEMENT affiliation (#PCDATA)>
(6) <!ELEMENT journal (jname, volume, number?, month? pages, year)>
(7) <!ELEMENT jname (#PCDATA)>
(8) <!ELEMENT volume (#PCDATA)>
(9) <!ELEMENT number (#PCDATA)>
(10) <!ELEMENT month (#PCDATA)>
(11) <!ELEMENT pages (#PCDATA)>
(12) <!ELEMENT year (#PCDATA)>
Document Model (3)
An XML document using the XML definitions from previous slide
(1) <?xml = version "1.0">
(2) <!DOCTYPE article SYSTEM "article.dtd">
(3) <article>
(4) <title> Prudent Engineering Practice for Cryptographic Protocols</title>
(5) <author><name>M. Abadi</name></author>
(6) <author><name>R. Needham</name></author>
(7) <journal>
(8) <jname>IEEE Transactions on Software Engineering</jname>
(9) <volume>22</volume>
(10) <number>12</number>
(11) <month>January</month>
(12) <pages>6 – 15</pages>
(13) <year>1996</year>
(14) </journal>
(15) </article>
Read More
Offer running on EduRev: Apply code STAYHOME200 to get INR 200 off on our premium plan EduRev Infinity!