XML - Managing Data Exchange/A single entity/Exercises
Single-Entity CHAPTER => A Single Entity
Single-Entity ANSWERS => Answers
Class Example - Wine Store
Develop an XML Document, an XML Schema, and an XML Stylesheet that integrate information about the wine found in a wine store: wine id, winery, vintage, style, country, region, cost, price, inventory level, and description.
1. A museum problem.
- a. Create an XML schema to describe a museum entity that has the following attributes: museum name, date established, address and URL. Check that it is well-formed and valid.
- b. Using the schema, create an XML document and populate it with data for two museums. Check that it is well-formed and valid.
- c. Write an XML stylesheet to display the name of the museum, date established and the URL. Check that it is well-formed and valid.
2. XML dataflow model.
Try to build a dataflow model containing the following components and how they work together:
- XSL stylesheet
- XML documents
- XML schema
- XSL(T) Processor
- different outputs
3. A fraternity or sorority problem.
- a. Create an XML schema to describe a fraternity or sorority that has the following attributes: name of organization, type of organization (fraternity or sorority), address, URL. Check that it is well formed and valid.
- b. Using the schema, create an XML document and populate it with data for two organizations. Check that it is well-formed and valid.
- c. Write an XML stylesheet to display the name of the organization, type of organization, address and the URL. Check that it is well-formed and valid.
4.Concept to XML. Using the output below, design an XML Document, XML Schema, and XML Stylesheet that will produce such a display.
Actor | Information |
---|---|
Brad Pitt | 18 December 1963 Shawnee, Oklahoma |
Julia Roberts | 28 October 1967 Smyrna, Georgia |
George Clooney | 6 May 1961 Lexington, Kentucky |
Renée Zellweger | 25 April 1969 Katy, Texas |
Johnny Depp | 9 June 1963 Owensboro, Kentucky, USA |
Jennifer Aniston | 11 February 1969 Sherman Oaks, California |
Samuel L. Jackson | 21 December 1948 Washington, District of Columbia |
Nicole Kidman | 20 June 1967 Honolulu, Hawaii |
Single-Entity CHAPTER => A Single Entity
Single-Entity ANSWERS => Answers