71 Pages

Extensible Markup Language1

Course: FACULTY OF WXGE6320, Winter 2009
School: University of Malaya
Rating:
 
 
 
 
 

Word Count: 2615

Document Preview

Markup Extensible Language XML Introduction New eXtensible Markup Language: XML Can use XML to define new languages Distributes easily on the Web Can mix different types of data together Basic XML Rules Technical details Always need end tags Special emptyelement tags Always quote attribute values Like this example ..... <?xml version="1.0"...

Register Now

Unformatted Document Excerpt

Coursehero >> Other International >> University of Malaya >> FACULTY OF WXGE6320

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Markup Extensible Language XML Introduction New eXtensible Markup Language: XML Can use XML to define new languages Distributes easily on the Web Can mix different types of data together Basic XML Rules Technical details Always need end tags Special emptyelement tags Always quote attribute values Like this example ..... <?xml version="1.0" encoding="iso88591"?> <html xmlns="http://www.w3.org/TR/xhtml1" > <head> <title> Title of text XHTML Document </title> </head><body> <div class="myDiv"> <h1> Heading of Page </h1> ..... <p>And here is another paragraph, this one containing an <img src="image.gif" alt="waste of time" /> inline image, and a <br /> line break. </p> </div> </body></html> Evolution of XML Many XML languages, optimised for different roles MathML for mathematics SMIL for synchronised multimedia RDF for describing "things" XUL for describing the Navigator 5 user interface MathML Designed to express semantics of maths Also can express layout Cut & paste into Maple, Mathematica x2 + 4x + 4 =0 <mrow> <mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <mo>+</mo> <mrow> <mn>4</mn> <mo>&invisibletimes;</mo> <mi>x</mi> </mrow> <mo>+</mo> <mn>4</mn> </mrow> <mo>=</mo> <mn>0</mn> </mrow> SMIL Synchronised Multimedia Integration Language Integration of multimedia with text, audio, video Support in RealPlayer G2 SMIL Example <smil> <head> <meta name="title" content="Online Teaching Services promo" /> <meta name="author" content="Jay Moonah, CAT" /> <layout type="text/smil-basic-layout"> <root-layout width="280" height="316" background-color="white"/> <region id="AnimChannel1" title="AnimChannel1" left="0" top="0" height="265" width="280" fit="hidden"/> </layout> </head> <body> <par title="Online Teaching Services promo" author="Jay Moonah, CAT" > <audio src="final.rm" id="Soundtrack" title="Soundtrack"/> <animation src="otscompfin.swf" id="Animation" region="AnimChannel1" title="Animation" fill="freeze"/> <text src="cc.rt" id="caption" region="cc" title="cc" fill="freeze"/> </par> </body></smil> XHTML: NextGen HTML <?xml version="1.0" encoding="iso88591"?> <html xmlns="http://www.w3.org/TR/xhtml1" > <head> <title> Title of text XHTML Document </title> </head> <body> <div class="myDiv"> <h1> Heading of Page </h1> <p> here is a paragraph of text. I will include inside this paragraph a bunch of wonky text so that it looks fancy. </p> <p>Here is another paragraph with <em>inline emphasized</em> text, and <b> absolutely no</b> sense of humor. </p> <p>And another paragraph, this one with an <img src="image.gif" alt="waste of time" /> image, and a <br /> line break. </p> </div> </body></html> XHTML Just like HTML, but based on XML rules Will support integration of different data into a single document XHTML and other Data <?xml version="1.0" encoding="iso88591"?> <html xmlns="http://www.w3.org/TR/xhtml1" > <head> <title> Title of XHTML Document </title> </head><body> <div class="myDiv"> <h1> Heading of Page </h1> <mathml xmlns="http://www.w3.org/TR/mathml"> ... MathML markup ... </mathml> <p> more html stuff goes here </p> <smil xmlns="http://www.w3.org/TR/smil1"> ... SMIL markup ... </smil> </div> </body></html> Other Use: Data Abstraction XML as a universal format for data interchange Machines exchange data as XMLformat messages Eliminates proprietary data formats Lots of XML processing software available XML Messaging Factory Place order Supplier Supplier Supplier Response XML Messaging Database Request/send data Other DB Other DB Other DB Request/send data Example Message <partorders xmlns="http://myco.org/Spec/partorders.desc"> <order ref="x2321122342" date="25aug199912:34:23h"> <desc> Gold sprockel grommets, with matching hamster</desc> <part number="2323221a12" /> <quantity units="gross"> 12 </quantity> <deliverydate date="27aug199912:00h"> </order> <order ref="x2321122342" date="25aug199912:34:23h"> .... Order something else ..... </order> </partorders> The XML Family Tree SMIL XHTML HTML TEI SpeechML XUL MathML RDF ... ... XML SGML The XML Suite XML Namespaces XML Schema XSL/XSLT/XSLFO/XPath Xlink XML Query DOM XPointer XML Base XML Key Management XML Encryption XML Signature XForms SOAP/XMLP Among Some Emerging Complementary Standards XSL: The style language XLink: The hypertext language Actually, two more or less separate components: XSL Transformations (XSLT): for transforming XML documents associating style properties with elements (XSLFO) associated with XPointer, for pointing to a piece of data in an XML document (based on XPath) Structuring XML Structuring a) DTDs b) XML Schema Structuring XML Documents Define all the element and attribute names that may be used Define the structure If such structuring information exists, the document can be validated what values an attribute may take which elements may or must occur within other elements, etc. Structuring XML Dcuments (2) An XML document is valid if There are two ways of defining the structure of XML documents: it is wellformed respects the structuring information it uses DTDs (the older and more restricted way) XML Schema (offers extended possibilities) DTD: Element Type Definition <lecturer> <name> David Billington </name> <phone> +61 - 7 - 3875 507 </phone> </lecturer> DTD for above element (and all lecturer elements): <!ELEMENT lecturer (name,phone)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> The Meaning of the DTD The element types lecturer, name, and phone may be used in the document A lecturer element contains a name element and a phone element, in that order (sequence) A name element and a phone element may have any content In DTDs, #PCDATA is the only atomic type for elements DTD: Disjunction in Element Type Definitions We express that a lecturer element contains either a name element or a phone element as follows: <!ELEMENT lecturer (name|phone)> A lecturer element contains a name element and a phone element in any order. <!ELEMENT lecturer((name,phone)|(phone,name))> Example of an XML Element <order orderNo="23456" customer= "John Smith" date= "October 15, 2002"> <item itemNo= "a528" quantity="1"/> <item itemNo= "c817" quantity="3"/> </order> The Corresponding DTD <!ELEMENT order (item+)> <!ATTLIST order orderNo ID customer CDATA date CDATA #REQUIRED #REQUIRED #REQUIRED> <!ELEMENT item EMPTY> <!ATTLIST item itemNo ID quantity CDATA comments CDATA #REQUIRED #REQUIRED #IMPLIED> Comments on the DTD The item element type is defined to be empty + (after item) is a cardinality operator: ?: appears zero times or once *: appears zero or more times +: appears one or more times No cardinality operator means exactly once Comments on the DTD (2) In addition to defining elements, we define attributes This is done in an attribute list containing: Name of the element type to which the list applies A list of triplets of attribute name, attribute type, and value type Attribute name: A name that may be used in an XML document using a DTD DTD: Attribute Types Similar to predefined data types, but limited selection The most important types are CDATA, a string (sequence of characters) ID, a name that is unique across the entire XML document IDREF, a reference to another element with an ID attribute carrying the same value as the IDREF attribute IDREFS, a series of IDREFs (v1| . . . |vn), an enumeration of all possible values Limitations: no dates, number ranges etc. DTD: Attribute Value Types #REQUIRED Attribute must appear in every occurrence of the element type in the XML document #IMPLIED The appearance of the attribute is optional #FIXED "value" Every element must have this attribute "value" This specifies the default value for the attribute XML Schema Significantly richer language for defining the structure of XML documents Its syntax is based on XML itself not necessary to write separate tools Expand or delete already existent schemas Reuse and refinements of schemas Sophisticated set of data types, compared to DTDs (which only supports strings) XML Schema (2) An XML schema is an element with an opening tag like version="1.0"> <schema http://www.w3.org/2000/10/XMLSchema Structure of schema elements Element and attribute types using data types Element Types <element name="email"/> <element name="head" minOccurs="1" maxOccurs="1"/> <element name="to" minOccurs="1"/> Cardinality constraints: minOccurs="x" value (default 1) maxOccurs="x" (default value 1) Generalizations of *,?,+ offered by DTDs Attribute Types <attribute name="id" type="ID" use="required"/> < attribute name="speaks" type="Language" use="default" value="en"/> Existence: use="x", where x may be optional or required Default value: use="x" value="...", where x may be default or fixed Data Types There is a variety of builtin data types Numerical data types: integer, Short etc. String types: string, ID, IDREF, CDATA etc. Date and time data types: time, Month etc. There are also userdefined data types simple data types, which cannot use elements or attributes complex data types, which can use these Data Types (2) Complex data types are defined from already existing data types by defining some attributes (if any) and using: sequence, a sequence of existing data type elements (order is important) all, a collection of elements that must appear (order is not important) choice, a collection of elements, of which one will be chosen A Data Type Example <complexType name="lecturerType"> <sequence> <element name="firstname" type="string" minOccurs="0" maxOccurs="unbounded"/> <element name="lastname" type="string"/> </sequence> <attribute name="title" type="string" use="optional"/> </complexType> XML Schema: The Email Example <element name="email" type="emailType"/> <complexType name="emailType"> <sequence> <element name="head" type="headType"/> <element name="body" type="bodyType"/> </sequence> </complexType> XML Schema: The Email Example (2) <complexType name="headType"> <sequence> <element name="from" type="nameAddress"/> <element name="to" type="nameAddress" minOccurs="1" maxOccurs="unbounded"/> <element name="cc" type="nameAddress" minOccurs="0" maxOccurs="unbounded"/> <element name="subject" type="string"/> </sequence> </complexType> XML Schema: The Email Example (3) <complexType name="nameAddress"> <attribute name="name" type="string" use="optional"/> <attribute name="address" type="string" use="required"/> </complexType> Similar for bodyType Addressing and Querying XML Documents In relational databases, parts of a database can be selected and retrieved using SQL The central concept of XML query languages is a path expression Same necessary for XML documents Query languages: XQuery, XQL, XMLQL Specifies how a node or a set of nodes, in the tree representation of the XML document can be reached XPath XPath is the core for XML query languages Language for addressing parts of an XML document. It operates on the tree data model of XML It has a nonXML syntax XML Tree ? Conceptually, an XML document is a tree structure node, edge root, leaf child, parent sibling (ordered), ancestor, descendant Nodes in XML Trees Text nodes: carry the actual contents, leaf nodes Element nodes: define hierarchical logical groupings of contents, each have a name Attribute nodes: unordered, each associated with an element node, has a name and a value Comment nodes: ignorable metainformation Processing instructions: instructions to specific processors, each have a target and a value Root nodes: every XML tree has one root node that represents the entire tree Namespaces An XML document may use more than one DTD or schema Since each structuring document was developed independently, name clashes may appear The solution is to use a different prefix for each DTD or schema prefix:name <vu:instructors xmlns:vu="http://www.vu.com/empDTD" xmlns:gu="http://www.gu.au/empDTD" xmlns:uky="http://www.uky.edu/empDTD"> Namespace Declarations Namespaces are declared within an element and can be used in that element and any of its children (elements and attributes) A namespace declaration has the form: If a prefix is not specified: xmlns="location" then the location is used by default xmlns:prefix="location" location is the address of the DTD or schema Namespaces Namespace declarations bind URIs to prefixes <... xmlns:foo="http://www.w3.org/TR/xhtml1"> ... <foo:head>...</foo:head> ... </...> Default namespace (no prefix) declared with xmlns="..." Attribute names can also be prefixed Namespaces A namespace (= "language") Defines a collection of names (a vocabulary) For UK : {address, county, postCode, .... } Usually has an associated syntax (e.g. Schema definition) address = ... county, postCode, ... Syntax may be available to S/W processing it Implies a semantics the (programmer writing) S/W processing a UK:address knows what it means Provides a unique prefix for disambiguating names from different originators UK vs. US vs. INT Namespaces Names To get uniqueness of namespace name, use a URI The URI might be a real URL, for accessing the syntax definition, documentation, .... But it may be just an identifier within the internet domain owned by the namespace owner Namespace Prefixes In an XML document declare a namespace prefix, as an attribute of an element xmlns:UK= HTTP://www.UKstandards.org/Web/XML/Forms then use that for names in that namespace UK:postCode UK:post code is called a QName (qualified name) What This Means It is as if every XML document were prefaced with an SGML declaration that sets a number of optional features, and changes some defaults. Mostly, these just say you can't take advantage of some generally available but difficultyprovoking SGML features. There are also some difference from the SGML "reference concrete syntax" (i.e., the set of delimiters you get if you don't declare anything). Example of a Well Formed Document (adapted from Bray) <email> <head> <from> <name>Tim Bray</name> <address>tbray@textuality.com</address> </from> <to> <name>Paul Dreyfus</name> <address>pdreyfus@netscape.com</address> </to> <subject> First draft of XML intro </subject> </head> <body> <p>Here's a draft of that XML article. I'll be on the road but ... </p> <attach encoding="mime" name="xmldraft.html"/> </body> </email> Corresponding Content Model, for Inclusion in DTD <!ELEMENT email (head, body)> <!ELEMENT head (from, to+, cc*, subject)> <!ELEMENT from (name?, address)> <!ELEMENT to (name?, address)> <!ELEMENT name (#PCDATA)> <!ELEMENT address (#PCDATA)> <!ELEMENT subject (#PCDATA)> <!ELEMENT body (p | attach)*> <!ELEMENT p (#PCDATA)> <!ELEMENT attach EMPTY> <!ATTLIST attach encoding (mime|binhex) "mime" name CDATA #REQUIRED> Use this to preface the document <!DOCTYPE email SYSTEM "http://www.hostname.dom/DTDs/email.dtd"> <email> <head> <from> <name>Tim Bray</name> <email>tbray@textuality.com</email> </from> <to> <name>Paul Dreyfus</name> <email>pdreyfus@netscape.com</email> </to> ... XML Implementations MSXML Mozilla IBM Alphaworks (Javabased) Apache Xerces (Java + C++) Some XML Applications MS's Channel Definition Format (CDF): Open Financial Exchange (OFX): "push" architecture description Open Software Distribution (OSD): data representation for software distribution on the Internet. Descriptions of transactions between customers and banks. Joint effort of MSFT, Intuit, Checkfree Actually began in SGML. Joint effort of MSFT, Marimba, others. Some XML Applications Cold Fusion (Allaire Corp.): Automatically constructs HTML forms from SQL queries Uses an "XMLlike" language, CFML, but is extensible using XML. Numerous intermediate data representations E.g., Notes Flat File is an XMLbased data representation for importing data into Lotus Notes. Various scientific notations: Chemical Markup Language (CML): describes molecules out of atoms and bonds. MathML: Capture semantics of mathematics. XHMTL: HTML as an XML, rather than SGML, application Online Resources http://www.w3.org/TR/xml11/ http://www.w3.org/TR/xmlnames11 http://www.unicode.org/ References All slides from the web page of the book A Semantic Web Primer: Grigoris Antoniou and Frank van Harmelen http://www.ics.forth.gr/isl/swprimer/ Richard Hopkins, XML documents ISSGC'05, National eScience Centre, Edinburgh, June 2005 (web) XML Basics A data object is a XML document if it is wellformed, i.e., (essentially) can be parsed into a treestructure. I.e.: Being wellformed is the only essential condition for using an XML document. All the tags are there. The begin and endtags match. All the entities are declared. All the attribute values are quoted. XML Basics (con't) An XML document is valid if it has an associated document type declaration the document complies with the constraints it expresses. Consequently, every valid XML document is also a conforming SGML document. Wellformed and Valid Wellformed means it conforms to the XML syntax, e.g. Start and end tags nest properly with matching names Valid means it conforms to the syntax defined by the namespaces used Can't check this without a definition of that syntax Normally a Schema DTD (document Type Definitions) deprecated Others type definition system some more sophisticated than Schemas Wellformedness Every XML document must be wellformed in other words, it defines a proper tree structure XML parser: given the textual XML document, constructs its tree representation start and end tags must match and nest properly exactly one root element ...
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

University of Malaya - FACULTY OF - WXGE6320
Homework 1 and 2 1. Execute a multimedia application at http:/barbie.everythinggirl.com/. Based on your own judgment provide a review about its multimedia user interface design around 500 words. (5% score should be ready by 5 January 2007) 2. Find any sui
University of Malaya - FACULTY OF - WXGE6320
IntroductionThe expert system : Is a series of programs to solve problems and issues in the area requested to establishment of an expert system. It notes that called the system and not just a program because it includes the components of a solution to th
University of Malaya - FACULTY OF - WXGE6320
Human Factors in Virtual EnvironmentsIntroductionVirtual environments are envisioned as being systems that will enhance the communication between humans and computers. If virtual systems are to be effective and well received by their users:considerable
University of Malaya - FACULTY OF - WXGE6320
Hypermedia, Learning and Adaptive HypermediaWhat is Hypermedia? hypertext deals with the associative linking between texts, hypermedia extends the hypertext ability to also include other types of media such as image, graphics, audio and simulation. Wor
University of Malaya - FACULTY OF - WXGE6320
Image EnhancementPart 1 1Image Enhancement Used to emphasize and sharpen image features for display and analysis. enhance otherwise hidden information Filter important image features Discard unimportant image features Enhancement method are applica
University of Malaya - FACULTY OF - WXGE6320
Image EnhancementPart 2Arithmetic/Logic operations (e.g. subtraction, addition) perform on pixel by pixel basis between two or more images Except NOT operation which performs only on a single image Logic operation performs on graylevel images:Enhanceme
University of Malaya - FACULTY OF - WXGE6320
Image EnhancementPart 3 Frequency Domain Filtering Image Representation in Frequency Domain Images can be represented in ways other than arrays of pixels. One way is by using the Fourier Transform. Image Representation in Frequency Domain FT Th
University of Malaya - FACULTY OF - WXGE6320
Image Segmentation HomeworkTry out the seg.m file (download seg.zip from student centre)Explain the programming steps involved, in wordsMatlab exercise:Detect edges in lena.bmp picture using sobel, prewitt and canny filter/detector mask. Which mask de
University of Malaya - FACULTY OF - WXGE6320
IMAGE SEGMENTATIONPart 1Introduction Segmentationsubdivides an image into its constituents regions or objects. purpose of image segmentation is to partition an image into meaningful regions (that represents objects or meaningful parts of objects ) wit
University of Malaya - FACULTY OF - WXGE6320
Image SegmentationPart 2 Thresholding and Regionbased SegmentationIntroductionThe simplest property that pixels in a region can share is intensity. So, a natural way to segment such regions is through thresholding, the separation of light and dark regi
University of Malaya - FACULTY OF - WXGE6320
Virtual RealityInput and Output DevicesBasic ComponentsInput Devices Concerns trackingwith interfaces for:users and users navigating through the virtual environment and interacting with the virtual objectsTrackers Three-Dimensional TypesPosition
University of Malaya - FACULTY OF - WXGE6320
Research Methods / Research Foundations in Computer ACM SIGMM (Special Interest Group of ACM on Multimedia )Retreat Report on Future Directions in Multimedia ResearchACM MMThe ACM Multimedia Special Interest Group was created ten years ago. Since tha
University of Malaya - FACULTY OF - WXGE6320
Integrating Educational Technology into TeachingChapter 1 Educational Technology in Context: The Big PictureWhat You Need to KnowDefinition of Integrating Educational TechnologyT h e p ro c e s s o f d e te rm ining wh ic h electronic tools and which
University of Malaya - FACULTY OF - WXGE6320
Integrating Educational Technology into TeachingChapter 2 Planning &amp; Implementation for Effective Technology IntegrationLevels of Planning School &amp; District Level Teacher LevelPlanning Steps Coordinate School &amp; District Planning Involve Teachers &amp; Ot
University of Malaya - FACULTY OF - WXGE6320
Integrating Educational Technology into TeachingChapter 3 Learning Theories and Integration ModelsPast Perceptions Tutor Tool TuteeDivergent ViewsLearning is constructed knowledge Learning is transmitted knowledgeConstructivistsObjectivistsTeachin
University of Malaya - FACULTY OF - WXGE6320
Integrating Educational Technology into TeachingChapter 4 Integrating Instructional Software into Teaching &amp; LearningINSTRUCTIONAL SOFTWAREPrograms developed for the sole purpose of delivering instruction or supporting learning activitiesInstructional
University of Malaya - FACULTY OF - WXGE6320
Interaction Design StageInteraction Design Concern with: 1. Content navigational and access path. 2. Interaction methods and controls in each screen. 3. Media treatments in each screen.Guidelines for designing good interactionBased on the following cr
University of Malaya - FACULTY OF - WXGE6320
Intro to Web Programming &amp; Web ScriptingAnd Getting Started with HTMLAcronyms HTML - HyperText Markup Language CSS - Cascading Style Sheets (Markup Language) XML - eXtensible Markup Language XHTMLWeb Languages1. Markup Languages 2. Scripting Language
University of Malaya - FACULTY OF - WXGE6320
Chapter 3 - Photoshop Elements: Creating Web GraphicsOutline 3.1 3.2 3.3 3.4 Introduction Image Basics Vector and Raster Graphics Toolbox 3.4.1 Selection Tools 3.4.2 Painting Tools 3.4.3 Shape Tools Layers Screen Captures File Formats: GIF, JPEG and PNG
University of Malaya - FACULTY OF - WXGE6320
CardLayout.java / This program displays a customer's personal information in a business card public class CardLayout cfw_ public static void main(String[] args) cfw_ int count; / count is a counter for printing &quot;*&quot; 50 times / Printing spaces in the top Sy
University of Malaya - FACULTY OF - WXGE6320
Chapter 7 - JavaScript: Introduction to ScriptingOutline7.1 7.2 7.3 7.4 7.5 7.6 7.7 Introduction Simple Program: Printing a Line of Text in a Web Page Obtaining User Input with prompt Dialogs 7.3.1 Dynamic Welcome Page 7.3.2 Adding Integers Memory Conce
University of Malaya - FACULTY OF - WXGE6320
Chapter 8 - JavaScript: Control Statements IOutline8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 Introduction Algorithms Pseudocode Control Structures if Selection Statement if.else Selection Statement while Repetition Statement Formulating Algorithms: Case Study 1 (
University of Malaya - FACULTY OF - WXGE6320
Chapter 9 - JavaScript: Control Statements IIOutline9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 9.10 9.11 Introduction Essentials of Counter-Controlled Repetition f o r Repetition Statement Examples Using the f o r Statement s w i t c h Multiple-Selection State
University of Malaya - FACULTY OF - WXGE6320
Chapter 10 - JavaScript: FunctionsOutline10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 10.12 Introduction Program Modules in JavaScript ProgrammerDefined Functions Function Definitions RandomNumber Generation Example: Game of Chance Another E
University of Malaya - FACULTY OF - WXGE6320
Chapter 7 - JavaScript: Introduction to ScriptingOutline7.1 7.2 7.3 7.4 7.5 7.6 7.7 Introduction Simple Program: Printing a Line of Text in a Web Page Obtaining User Input with prompt Dialogs 7.3.1 Dynamic Welcome Page 7.3.2 Adding Integers Memory Conce
University of Malaya - FACULTY OF - WXGE6320
Markup LanguageQ1/ What is a markup language? Markup language is a set of codes or tags that surrounds content and tells a person or program what that content is (its structure) and/or what it should look like (its format). Markup tags have a distinct sy
University of Malaya - FACULTY OF - WXGE6320
Math Teacher Expert SystemIntroductionExpert Systems: are computer programs that are derived from the Artificial Intelligence. The obvious extension of storing knowledge inside a computer program is to make use of that knowledge to solve practical probl
University of Malaya - FACULTY OF - WXGE6320
phone A phone is a 'unit sound' of a language in the sense that it is the minimal sound by which two words can differ. For example, the English word feed contains three phones since each can be independently substituted to form a different word. In the IP
University of Malaya - FACULTY OF - WXGE6320
PHP Array Functions PHP Array Introduction The array functions allow you to manipulate arrays. PHP supports both simple and multi-dimensional arrays. There are also specific functions for populating arrays from database queries. Installation The array fun
University of Malaya - FACULTY OF - WXGE6320
Presentation DesignWRET1103Some key visual display principles (Lewis and Rieman, 1994)The `clustering' principleorganise screen into visually separate blocks based on logical grouping Aim to give title to each blockThe `visibility reflects usefulness
University of Malaya - FACULTY OF - WXGE6320
WRET3310: Quiz 1J XHTML, JavaScriptsAnswer ALL Questions If you manage to produce the requirement output, you'll get 1 mark. You have 45 minutes on this quiz. Spend 10 minutes on every questions. Save your work as .html files named after the question e
University of Malaya - FACULTY OF - WXGE6320
QUIZ 2 WEB APPLICATION DEVELOPMENT (40 Minutes) - 5% Answer All Questions 1. Answer True or False for each of the following statements:i) ii)iii) iv)v)vi) vii) viii) ix) x)The &lt;!ELEMENT list (item*)&gt; defines element list as containing one or more ite
University of Malaya - FACULTY OF - WXGE6320
WRET2101Representation and Description Representation &amp; DescriptionThe results of segmentation is a set of regions. Regions have then to be represented and described.RepresentationTwo main ways of representing a region:1. external characteristic
University of Malaya - FACULTY OF - WXGE6320
Fastest Route from CS Dept to Einstein's HouseShortest PathsDijkstra's algorithm Bellman-Ford algorithmPrinceton University COS 226 Algorithms and Data Structures Spring 2004 Kevin Wayne http:/www.Princeton.EDU/~cos2262Shortest Path ProblemShortest
University of Malaya - FACULTY OF - WXGE6320
Speech InterfaceSpeech Overview VoiceUser Interface How does it work? Synthesis(TTS) Recognition (SR)Speech Synthesis Textto Speechdatabase Dynamic PromptHow Speech Synthesis Works? Textparsingnumbers, symbols, pauses Sentences, Natural P
University of Malaya - FACULTY OF - WXGE6320
SynchronizationSynchronization Synchronizationmultimedia. People paying for the localization project do not want to have to re-shoot expensive video. Instead, they ask you to use the same characters, just put in a different sound. Unfortunately, if we
University of Malaya - FACULTY OF - WXGE6320
2007/2008 Tutorial 1 Answer Q1 : I) II) III) IV) Entities: Departments, Employees, Supervisor, Projects Assigned (Employee-Department), Has (Department-Supervisor), Works-On (Employee-Project), The only attributes indicated are the names of the department
University of Malaya - FACULTY OF - WXGE6320
Multimedia and Learning Tutorial 1: Discussion1. Richard Clark's nowfamous comment about the impact of computers on learning was that the best current evidence is that media are mere vehicles that deliver instruction but do not influence student achievem
University of Malaya - FACULTY OF - WXGE6320
Tutorial 1 answersQ1: I) II) III) IV) Entities: Departments, Employees, Supervisor, Projects Assigned (Employee-Department), Has (Department-Supervisor), Works-On (Employee-Project), The only attributes indicated are the names of the departments, project
University of Malaya - FACULTY OF - WXGE6320
Multimedia and Learning Tutorial 2: Planning and Implementation for Effective Technology Integration1. Assume you are a classroom teacher at a level and type of school of your choice. Describe how the school should go about developing a technology imple
University of Malaya - FACULTY OF - WXGE6320
Tutorial 2 1. A bank's system analyst has identified the data elements required to manage the Bank's safe deposit system. The data elements are: BoxHolder First Name Last Name Address City State PostCode Phone Number Deputy BoxHolder Same as BoxHolder Box
University of Malaya - FACULTY OF - WXGE6320
Tutorial 2 Answers Q1 : There is more than one solution for this question. In general, the solution is as follows: The Tables: BOXHOLDER BOX BOX HISTORY BOX HOLDER IC No ( Or BoxHolderNo.) First Name Last Name Address City State PostCode Phone Number BOX
University of Malaya - FACULTY OF - WXGE6320
Multimedia and Learning Tutorial 31. Describe how knowledge about learning theories or instructional models is applied in the following research work: a. Grigoriadou et el., (2001) INSPIRE: An Intelligent System for Personalized Instruction in a Remote
University of Malaya - FACULTY OF - WXGE6320
Tutorial 3 STUDENT table SID S100 S150 S200 S250 S300 S350 S400 S450 Name Ismail Muthusamy Maniam Abu Bakar Mariam Mary Jessica Lim Major Information Science Artificial Intelligence Software Engineering Information Science Artificial Intelligence Software
University of Malaya - FACULTY OF - WXGE6320
Relational Algebra Exercises STUDENT table SID S100 S150 S200 S250 S300 S350 S400 S450 Name Ismail Muthusamy Maniam Abu Bakar Mariam Mary Jessica Lim Major Information Science Artificial Intelligence Software Engineering Information Science Artificial Int
University of Malaya - FACULTY OF - WXGE6320
Relational Algebra1.Consider the following AIRLINE database schema that describes the database for airline flight information: AIRPORT (Airport-code, Name, City) FLIGHT (Number, Airline, Weekdays) FLIGHT_LEG (Flight-number, Leg-number, Departure-airport-
University of Malaya - FACULTY OF - WXGE6320
Exercise II1.Consider the following AIRLINE database schema that describes the database for airline flight information: AIRPORT (Airport-code, Name, City) FLIGHT (Number, Airline, Weekdays) FLIGHT_LEG (Flight-number, Leg-number, Departure-airport-code Sc
University of Malaya - FACULTY OF - WXGE6320
Information VisualizationPart One1Introduction Thereare some aspects that may be understood better from graphics than from the textual format, such as the possibility for finding an alternative route, or the existence of historical places in the vici
University of Malaya - FACULTY OF - WXGE6320
Virtual Reality Markup Language (2) Understanding Shape AppearanceRecall that Shape nodes describe: Appearance nodes describe: Shape cfw_ geometry . . . appearance . . . geometry form, or structure appearance color and texture Shape cfw_ ap
University of Malaya - FACULTY OF - WXGE6320
VRML Script Node and JAVAWhy would you want to use Java with your VRML? Java class has more flexibility to define complex behaviors Java has its simple networking classes create multi-user VRML worlds, visualizations of the Internet or visualizations o
University of Malaya - FACULTY OF - WXGE6320
Virtual Reality Markup LanguageAn Introduction to VRML &amp; Modeling Shapes, Geometry, Colour Introduction The Virtual Reality Modeling Language A file format for describing interactive threedimensional objects and worlds (a model of a 3D space, which
University of Malaya - FACULTY OF - WXGE6320
WXGE6320: Web Application Tutorial 31. Develop a JavaScript program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a. b. c. d. e. Account nu
University of Malaya - FACULTY OF - WXGE6320
WXGE6320: Web Application Tutorial 5Write a complete JavaScript program to request user for the radius of a sphere, and call function sphereVolume to calculate and display the volume of the sphere. Use the statement volume = (4.0 / 3.0) * Math.PI * Math.
University of Malaya - FACULTY OF - WXGE6320
WXGE6320: WEB DEVELOPMENT Tutorial 4 Answer All Questions 1. Draw a flowchart for selection statement below. Document.writeln( studentGrade &gt;= 70 ? &quot;Passed&quot; : &quot;Failed&quot;); 2. Write a JavaScript function to validate the username and password entered by a use
University of Malaya - FACULTY OF - WXGE6320
Tutorial 02 Carrier Sense Multiple Access (CSMA)1IntroductionIn the IEEE 802 protocols for shared multi-access LANs, the data link layer is divided into two sub layers, as shown next. The upper LLC (Logical Link Control) layer provides a way to address
University of Malaya - FACULTY OF - WXGE6320
Writing PapersStudents too often put off a written assignment, considering it a chore too formidable to approach until the last minute. As a result, grades inevitably suffer. Writing is not a talent reserved for a select few, it is a skill that can be le
University of Malaya - FACULTY OF - WXGE6320
Group Assignment 1 : Bellman-Ford's Algorithm and Applications to the Network Routing Theory Chapter 1 : Introduction a) Introduction to Algorithm : An algorithm is a type of effective method in which a systematic list of a known set of instructions for c
University of Malaya - FACULTY OF - WXGE6320
Chapter 4 - Introduction to XHTML: Part 1Outline 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 Introduction Editing XHTML First XHTML Example W3C XHTML Validation Service Headers Linking Images Special Characters and More Line Breaks Unordered Lists Nest
University of Malaya - FACULTY OF - WXGE6320
Chapter 5 - Introduction to XHTML: Part 2Outline5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11 Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms Internal Linking Creating and Using Image M
Harvard - ECON1723 - 312
1. Which of the following illustrates the concept of external cost? a. Margaret purchases all her food and clothing in the big city outside her residence. b. A small business owner frequently buys raw materials by using her bank's line of credit. *c. Raym
Harvard - ECON1723 - 312
1. Which of the following illustrates the concept of external cost? a) Margaret purchases all her food and clothing in the big city outside her residence. b) A small business owner frequently buys raw materials by using her bank's line of credit. c) Raymo