Sie sind auf Seite 1von 6

Lsungen zu Standards und Organisationen (01) und XML Grundlagen (02)

1.1 Beantworten Sie die folgenden Fragen a) Internet Protocol (IP) richtig falsch x Das Internet Protocol (IP) wurde durch die Internet Engineering Task Force (IETF) erarbeitet x Die aktuell am hufigsten verwendete Version von IP ist 1.1 x Die zuknftige Version von IP wird 2.0 sein. x Die Spezifikation des Internet Protocol (IP) ist in Form einer RFC verffentlicht x Firmen welche eine Implementierung des Internet Protocol (IP) kommerziell nutzen mssen dafr bei der IETF eine Lizenz beantragen 1.2 Kreuzen Sie die richtige(n) Antworten an a) Tim Berners Lee ist der Erfinder des Internets Da das Internet frei und offen ist, spielen Standards keine wichtige Rolle Die Abkrzung HTTP steht fr Hypertext Transport Protocol x HTTP ist ein Standard der IETF b) Die Abkrzung W3C steht fr World Wide Web Conference x Das W3C ist eine wichtig Orgnisation im Bereich Standardisierung von Internet Technolgien Tim Berners Lee ist Grnder und Bill Gates der aktuelle Vorsitzende des W3C x CSS (Cascading Style Sheets) ist ein W3C Standard SAX (Simple API for XML) ist ein W3C Standard 2.1.1 Kreuzen Sie die richtige(n) Antwort(en) an a) XML steht fr eXtrem Markup Language XML konnte sich bisher noch nicht auf breiter Front durchsetzen x XML ist aus SGML (Standard Generalized Markup Language) entstanden SGML (Standard Generalized Markup Language) ist wenig verbreitet im Web Bereich, da es zu wenig mchtig ist b) x Eine XHTML Seite ist ein wohlgeformtes XML Dokument x Eine XHTML Seite ist ein gltiges XML Dokument Da XHTML auf XML basiert kann ein WebDesigner in XHTML Seiten selbstdefinierte XML Elemente verwenden x In der XHTML DTD sind alle gltigen Attribte zu einem Element definiert

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

2.2 berprfen Sie Ihre Lsungen mit Hilfe eines XML Editors (Eclipse, XML Spy ...). 2.3 XML Dokumente 2.3.1 <?xml version="1.0" encoding="UTF-8"?> <contactList> <contact> <contactNo>0001</contactNo> <firstName>Max</firstName> <lastName>Muster</lastName> <email> <type>privat</type> <address>max@muster.com</address> </email> <phoneNumber type="home"> <type>home</type> <nr>+41441234567</nr> </phoneNumber> <phoneNumber> <type>work</type> <nr>+41432223344</nr> </phoneNumber> <phoneNumber> <type>mobile</type> <nr>+41791234567</nr> </phoneNumber> </contact> </contactList>

2.3.2 a) <?xml version="1.0" encoding="UTF-8"?> <root xsi:noNamespaceSchemaLocation="ue232a.xsd" xmlns:xsi="http://www.w3.org/ 2001/XMLSchema-instance"> <customers> <customer> <customerid>1001</customerid> <firstname>John</firstname> <lastname>Doe</lastname> <email>john@doe.com</email> </customer> <customer> <customerid>1002</customerid> <firstname>Jack</firstname> <lastname>Long</lastname> <email>jack@jacklong.com</email> </customer> </customers> <orders> <order> <orderid>30001</orderid> <date>2010-08-13</date> <customerid>1001</customerid> </order> 2

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

<order> <orderid>30003</orderid> <date>2010-08-15</date> <customerid>1002</customerid> </order> <order> <orderid>30010</orderid> <date>2010-08-21</date> <customerid>1001</customerid> </order> </orders> <orderitems> <orderitem> <orderid>30001</orderid> <itemid>50234</itemid> <itemtype>Book</itemtype> <itemname>Brave New World</itemname> </orderitem> <orderitem> <orderid>30003</orderid> <itemid>44378</itemid> <itemtype>CD</itemtype> <itemname>The Wall</itemname> </orderitem> <orderitem> <orderid>30010</orderid> <itemid>33998</itemid> <itemtype>Book</itemtype> <itemname>The Devils of Loudun</itemname> </orderitem> </orderitems> </root> 2.3.2 b) <?xml version="1.0" encoding="UTF-8"?> <root xsi:noNamespaceSchemaLocation="ue232a.xsd" xmlns:xsi="http://www.w3.org/ 2001/XMLSchema-instance"> <customers> <customer customerid="1001"> <firstname>John</firstname> <lastname>Doe</lastname> <email>john@doe.com</email> </customer> <customer customerid="1002"> <firstname>Jack</firstname> <lastname>Long</lastname> <email>jack@jacklong.com</email> </customer> </customers> <orders> <order orderid="30001"> <date>2010-08-13</date> <customerid>1001</customerid> </order> <order orderid="30003"> <date>2010-08-15</date> <customerid>1002</customerid> 3

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

</order> <order orderid="30010"> <date>2010-08-21</date> <customerid>1001</customerid> </order> </orders> <orderitems> <orderitem orderid="30001" itemid="50234"> <itemtype>Book</itemtype> <itemname>Brave New World</itemname> </orderitem> <orderitem orderid="30003" itemid="44378"> <itemtype>CD</itemtype> <itemname>The Wall</itemname> </orderitem> <orderitem orderid="30010" itemid=">33998"> <itemtype>Book</itemtype> <itemname>The Devils of Loudun</itemname> </orderitem> </orderitems> </root> 2.3.2 c) <?xml version="1.0" encoding="UTF-8"?> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ue232c.xsd"> <customers> <customer customerid="1001"> <firstname>John</firstname> <lastname>Doe</lastname> <email>john@doe.com</email> <orders> <order orderid="30001"> <date>2010-08-13</date> <customerid>1001</customerid> <orderitems> <orderitem orderid="30001" itemid="50234"> <itemtype>Book</itemtype> <itemname>Brave New World</itemname> </orderitem> </orderitems> </order> <order orderid="30010"> <date>2010-08-21</date> <customerid>1001</customerid> <orderitems> <orderitem orderid="30010" itemid=">33998"> <itemtype>Book</itemtype> <itemname>The Devils of Loudun</itemname> </orderitem> </orderitems> </order> </orders> </customer> <customer customerid="1002"> <firstname>Jack</firstname> <lastname>Long</lastname> 4

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

<email>jack@jacklong.com</email> <orders> <order orderid="30003"> <date>2010-08-15</date> <customerid>1002</customerid> <orderitems> <orderitem orderid="30003" itemid="44378"> <itemtype>CD</itemtype> <itemname>The Wall</itemname> </orderitem> </orderitems> </order> </orders> </customer> </customers> </root> 2.4 Namensrume 2.4.1 <?xml version="1.0" encoding="UTF-8"?> <root> <h:table xmlns:h="http://www.w3.org/TR/html4/"> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table xmlns:f="http://www.w3schools.com/furniture"> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root> oder <?xml version="1.0" encoding="UTF-8"?> <root xmlns:h="http://www.w3.org/TR/html4/" xmlns:f="http://www.w3schools.com/ furniture"> <h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root> 2.4.2

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Virtual Library</title> </head> <body> <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p> </body> </html>

Internet- & Intranet Technologie 3

Hermann Schnyder 2010

Das könnte Ihnen auch gefallen