Question: As an XML developer, you are required to model a system for an online used vehicle shop. After an interview with the shop manager you
As an XML developer, you are required to model a system for an online used vehicle shop. After an interview with the shop manager you have the following information:
- The details of the vehicle shop include shop name, address, telephone number, website address (URL), and logo (image).
- The vehicle shop has the following types of items for sale: hatchback, sedan, suv,etc. Each item has a brand name, an item number, description, quantity and price.
- A car can be electric, hybrid electric or fuel vehicle. A car has information about manufacturer, carType(electrice/hybrid/fuel), color, dimension, etc.
Analyse the above-motioned scenario. Prepare data in XML, and add additional information you wish to record. Draw your document structure(tree diagram). You should include:
- At least 15 data and maximum 20
- At least 5 attributes and maximum 10
- At least 5 optional data field.
Using the above and additional information, and the data structure from above, create an XML document and name it catalog.xml. (use real time scenario)
Based on the structure of catalog.xml, create a schema file(external) named catalog .xsd. Apply catalog.xsd to the contents of catalog.xml.
Create a CSS file called catalog.css to render your XML data file in a web browser.
- Create a list
- Create at least one border
- Use at least two different font sizes and font families.
- Use two different font colors, at least one of which is defined using RGB values.
- Display the logo image.
- Use at least one floating box
Step by Step Solution
3.36 Rating (159 Votes )
There are 3 Steps involved in it
StepbyStep XML and Schema Design Step 1 Analyze the Structure Based on the given scenario we need to ... View full answer
Get step-by-step solutions from verified subject matter experts
