Creating the xml xsd and the xslt files

Assignment Help Computer Engineering
Reference no: EM131371662

Final Project Part 1 -

Use this Assignment resource to submit Part 1 of your Final Project.

This Final Project will be an ongoing project throughout this course. Its goal is to tie together different aspects of how XML and all of its constituent parts can be tied together. During this project, files for XSD, XSLT, CSS, and XHTML will be used to transform the data in XML into formats that allow for the parsing of this data as well as visualization and styling of the data.

The example that will be used here will be the translating of measurements, both distance and weight, from one measurement standard to another. The distance measurements will translate from Imperial mile to Metric Kilometer. The weight measurements will translate from Troy Ounce to Metric Gram.

For this first part of the project, you will turn in 4 files:

  • measurements1.html
  • measurements1.xml
  • measurements1.xsd
  • measurements1.xslt

You will be creating the xml, xsd, and the xslt files using any text editor you want. The html file will be created for you using the saxon tool.

1. Use the measurements1.xsd file from the previous assignment.

2. Build an XML document based on the schema in measurements1.xsd. Name this document measurements1.xml.

a. This XML document should have a root of measurements.

b. This XML document should have at least 3 child elements to measurements.

3. Create an XSLT style sheet to display the contents in the measurements1.xml file. Name this file measurements1.xslt.

a. The first template should match the root of the document.

i. Inside the template, create an html document that outputs the total number of items in the measurements1.xml file and how many of each type are in the file.

ii. There should also be an apply-templates call that matches the measurement element.

b. The second template should match measurement.

i. In this template, choose between weight and distance based on the attribute typeOfMeasurement

ii. For distanceType, you should output the distance/@measureDistance attribute, as well as the distance element.

iii. For weightType, you should output the weight@measureWeight attribute, as well as the weight element.

4. Run these through the sax processor with the command

Transform.exe -sa -s:measurements1.xml -xsl:measurements1.xslt -xsd:measurements1.xsd -o:measurements1.html

This should result in an html file that outputs something similar to:

The 3 measurements that I want transformed.

There are 2 distance measurements

There is 1 weight measurement.

A distance measurement using the imperial scale is:

The length of the distance is 1.45

A weight measurement using the troy scale is:

The amount of the weight is .6

A distance measurement using the metric scale is:

The length of distance is 25

Reference no: EM131371662

Questions Cloud

Define the term bandwidth as it applies to a network : Define the term bandwidth as it applies to a network.
What is devicenet used for : Compare the transmitting distances of RS-232 and RS-422/485 serial types.
Analyze contemporary social issues using the sociological : The purpose of this assignment is to recognize sociological concepts at play in your lived experience. Keeping a field log of your social and institutional experiences for one day, you will critically discuss how your daily life is shaped and co..
What type of access control is used with dh+ : Explain how networking schemes minimize the amount of wiring required.
Creating the xml xsd and the xslt files : You will be creating the xml, xsd, and the xslt files using any text editor you want. The html file will be created for you using the saxon tool
Prepare a paper on the importance of the price proposal : Pricing Proposal and Determination- Prepare a paper on the importance of the price proposal and audit determinations. Include at least 3 references.
Summarize the token passing network access method : Summarize the token passing network access method.
The public duty doctrine has been characterized as duty : The public duty doctrine has been characterized as duty to all but duty to no one. This raises interesting questions in regards to how to proceed when errors occur in the public sector. To illustrate, Josie wants to open a coffee shop and finds an em..
Define the term access method as it applies to a network : Define the term access method as it applies to a network.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd