Today's post answers questions related to XML Schemas.
You can download the complete lab questions from here.
Quick Questions
1. The following passage is to be found in the middle of a particular XML document:
The heavily-used<service xlink:type = "simple" xlink:href ="http://www.thetrams.co.uk/croydon"> Croydon Tramlink </service> provides a cross link to nearby <location>Wimbledon</location>, <location>Addington</location> and <location>Beckenham</location>.
What can you say...
Saturday, 28 January 2012
CMT3315 Lab 10 - XLink
Today's post answers questions related to XLink.
Wherever possible, lab questions were reproduced before providing the answer. The lab handout may be downloaded from here.
Quick Questions
1. One of the advantages claimed for the "extended links", that the W3C consortium intended to
be part of the XLink language, was that the definition of a particular hyperlink could be located, not
in the local resource (the document where the link starts), or the remote resource (the document where the
link ends), but in a quite different "third...
Sunday, 22 January 2012
CMT3315 Lab 09 - CSS & XPath

Today's post answers questions related to Cascading Style Sheets (CSS) and XPath.
You can download the complete lab questions from here.
Quick Questions
1. Suppose that a CSS file is used to determine how an XML document will appear when viewed in a browser. Suppose that the CSS file contains two rules, one dictating that a particular piece of text will appear in bold type, the other dictating...
Saturday, 21 January 2012
CMT3315 Lab 08 - XML & CSS

Today's post answers questions related to Cascading Style Sheets (CSS) and XML.
You can download the complete lab questions from here.
Quick Questions
Q1. You have a set of legal documents. Each has four sections: the title, the case, the background, and the judgement, in that order. Each has been made into an XML document by inserting a prolog and suitable tags. You want to write a CSS...
Thursday, 8 December 2011
CMT3315 Lab 07 - DTD 3
Quick Questions
Q1. People who prepare XML documents sometimes put part of the document in a CDATA section.
Why would they do that?
How is the CDATA section indicated?
If CDATA sections hadn't been invented, would there be any other way to achieve the same effect?
Sometimes, the contents of an XML document might have characters which have a special meaning in XML such as "<", ">" and "&". When an XML document is being parsed, text between XML tags is also parsed so...
Saturday, 26 November 2011
CMT3315 Lab 06 - Character Encoding

Today's post deals with character encoding and how it can be specified in XML documents.
Character Encoding
Character encoding is the process of converting any character into another form which facilitates its transmission over a telecommunications network or its storage.
Early examples of character encoding are Morse code - which converts characters into a series of long and short presses...
Saturday, 12 November 2011
CMT3315 Lab 05 - XML Well-formedness & DTDs

The last post covered the basics of XML syntax and document type definitions. This weeks post is a continuation, answering some more questions related to XML well formedness and DTDs. Where possible, lab questions were reproduced before providing the answer.
Quick Questions
Q1. <:-/> This is a smiley. Is it also a well-formed XML document? Say why.
From a structural point...
Subscribe to:
Posts (Atom)