Wednesday, 31 March 2010

CMT3315 – Laboratory 11 – 9 December 09

Quick Questions

1. Its about centralising the code within a document so that if you wish to change the attributes of the links of one or more document, then you only need to edit the third party document. This is similar to css as css is a separate document used to style an html document. In this case a third party document in xlink is used to edit the attributes of links contained in other documents. The advantage is the ability to change attributes of links contained in many documents by editing only one document (third party document) therefore making the editing process a little simpler.

2. Show="embed" (The link replaces the element link)
Show="new" (This opens up a new window)
Show="replace" (The content is loaded up on the current window, this is also the default attribute value)


Longer Questions

1.
(a) The following creates a link for the words “this website” contained within the message tag.

<memo>xmlns:xlink = "http://www.w3.org/1999/xlink">

<message>i think we should be making wind-turbines. Have a look at <Link xlink:type = "simple" xlink:href = “http://engineering.suite101.com/article.cfm/wind_power”> this website.</Link> Tell me what you think.</message>

</memo>


(b) The following will make the hyperlink finish at a certain part of the document rather than the wind_power document as a whole.

<message>i think we should be making wind-turbines. Have a look at <A HREF=“= “http://engineering.suite101.com/article.cfm/wind_power#WE Elec Facts”> this website.</A> Tell me what you think.</message>

2. The following creates a link for the words “this website” contained within the message tag. This time however the link takes the user to www.google.com


<memo>xmlns:xlink = "http://www.w3.org/1999/xlink">

<message>i think we should be making wind-turbines. Have a look at <Link xlink:type = "simple" xlink:href = “www.google.com”> this website.</Link> Tell me what you think.</message>

</memo>




Lecture Reflection-WEEK 11 – 12 – XML Schema


The lecture reflection for this week is discussed in the blog for week 12
http://www.ronnysmarket.com/
http://www.ronnysmarket.com/catalog/main

No comments:

Post a Comment