CMT3315 – Laboratory 11
Quick questions:
1) Advantages of having the definition of a particular hyperlink in a third document (i.e. not in source or destination)
It is easier to maintain say by having a list of hyperlink definitions in one place i.e. like a lookup or link table.
The source and destination documents can be kept safe and no need to modify these to change a link.
2) The XLink language provides an attribute for a hyperlink called show – it has several possible values. What is the effect of providing such a link with each of the following attribute values?
show=”replace” - Link replaces current document (replace this page)
show="new" - Open link in a new window (a new separate window)
show=”embed” - Open link inside this page (or in line) (where link is)
show=”embed” - Open link inside this page (or in line) (where link is)
Which of these three attribute values is the default? - show=”replace”
Longer Questions:
1a) Amend the document, so that the link is in fact there. Make any necessary changes to the .dtd file as well.
XML:
<message>I think we should be making wind-turbines. Have a look at <![CDATA[<a href=' http://engineering.suite101.com/article.cfm/wind_power'>this website</a>]]>. Tell me what you think. </message>
DTD:
<!ELEMENT message (#CDATA)>
<a href=' http://engineering.suite101.com/article.cfm/wind_power# WE Elec Facts '>text</a>
2) ural for making solar panels
XML:
<message>I think we should be making solar-panels. Have a look at <![CDATA[<a href=' http://www.make-solar-panels.org/'>this website</a>]]>. Tell me what you think. </message>
DTD:
No changes needed
No comments:
Post a Comment