IT, Web
IT, Web
1. What are advantages of performing XSL transforming on the server?
2. Create XSL document to transform the following xml
<?xml version=”1.0″?>
<PARTS>
<TITLE>Computer Parts</TITLE>
<PART>
<ITEM>Motherboard</ITEM>
<MANUFACTURER>ASUS</MANUFACTURER>
<MODEL>P3B-F</MODEL>
<COST> 123.00</COST>
</PART>
<PART>
<ITEM>Video Card</ITEM>
<MANUFACTURER>ATI</MANUFACTURER>
<MODEL>All-in-Wonder Pro</MODEL>
<COST> 160.00</COST>
</PART>
<PART>
<ITEM>Sound Card</ITEM>
<MANUFACTURER>Creative Labs</MANUFACTURER>
<MODEL>Sound Blaster Live</MODEL>
<COST> 80.00</COST>
</PART>
<PART>
<ITEM>8 inch Monitor</ITEM>
<MANUFACTURER>LG Electronics</MANUFACTURER>
<MODEL> 995E</MODEL>
<COST> 290.00</COST>
</PART>
</PARTS>
Your goal is to display this xml file as a table
Recommended steps:
a. Create file parts.xml and check it for errors by opening it with a browser http://localhost/xml/parts.xml.
(Fig 1)
b. Create file parts.xsl (use catalog.xsl on page 10 as an example).
c. Check parts.xsl for errors by opening it with a browser. If you have errors, fix them.
Fig. 2
3. Create parts.html file that will display information from xml file using XSLT client side transformation. See above “Client side transformation.”
4. Create parts.php file that will display information from xml file using XSLT server side transformation. See above “Serving XML with PHP.”
What to submit:
1. .docx file that contains
• quiz screenshot
• question #2 answer
• code and screenshots for #3, #4, and #5.
TAKE ADVANTAGE OF OUR PROMOTIONAL DISCOUNT DISPLAYED ON THE WEBSITE AND GET A DISCOUNT FOR YOUR PAPER NOW!