![]() |
![]() |
Labs
|
|---|
For this set of activities we have provided you with a simple environment for experimentation. Look at the Control Panel (which should have opened in a separate window when this page loaded). In the left frame is a set of links which can, in theory, be clicked to see different views of an XML version of the home page we have been working with in lab for most of this module. In the top frame on the right of the screen you see the results of applying the stylesheet displayed in the middle frame to the XML version of our home page, which is displayed in the bottom frame. We say "in theory" because when you click them now you get pretty much the same results when you click any of the links. The top (results) frame always shows a simple HTML header for our home page, the middle frame shows what looks like the identical XSL file, and the bottom frame shows the XML file being processed. If you look closely, though, at the XML in the bottom frame, you will notice that, while the XML code itself is identical in all cases, the XSL file referred to in the directive is in fact different for each of the links. The four links refer, respectively, to four different XSL files that we have created for you. Your job in the exercises below is to edit these files to accomplish the processing that they claim to accomplish. After editing these files, you can return to this page and simply click the links to see the results of your XSL coding efforts. Note: For this demonstration to work correctly, it is critical that you do not change the names of any of the files involved. Simply editing the XSL files provided will allow you to easily test your results using this page. If you change the names of any files involved (mistakenly or intentionally) you can simply open your renamed XML files in your browser to see the results. Also, remember that you are working with XML and XSL files and, so, should be careful to save the results of you editing as text files (NOT in any type of word processing format). |
|