Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92181499

Have any Question?


Related Questions in Computer Engineering

Task 1 use the sumofnnumbersjava file create a method that

Task 1: Use the sumOf_N_Numbers.java file. Create a method that takes in two parameters namely the starting and ending number of the range and returns the sum of all the numbers in that range to the calling method Task 2 ...

A firm produces product a and product b this years sales

A firm produces Product A and Product B. This years sales price of Product A have decreased tremendously, and the sale of Product B has increase by 10 percent. The firm has threeemployees that can produce Product A and f ...

Take the case in which all individuals are risk averse so

Take the case in which all individuals are risk averse, so that marginal costs slope down. In that case, why might it be optimal (socially efficient) for insurance take up to be less than 100%?

Question suppose that the equallists function page 49 of

Question : Suppose that the equal_lists function (page 49 of Sebesta's Book Concepts of Programming Languages edition 11) is called with the lists ((A (B)) (C)) and ((A (B)) (C)) as the arguments. How many calls of equal ...

With respect to bus request interruptswhat must be allowed

With respect to bus request interrupts: What must be allowed to complete before the interrupts is serviced? What resources (CPU, buses, memory, etc..) is the ISR expected to use? What is the ISR typically expected to do? ...

What is a security policy and why is it so critical to the

What is a security policy and why is it so critical to the success of an organization's information security program? Select an Issue Specific Security Policy and describe why an organization should have this issue cover ...

A swimmer is an athlete any athlete who participated in the

A swimmer is an athlete. Any athlete, who participated in the 2016 Summer Olympics and won a gold medal, was joyful. Any athlete, who is the world top athlete or a selected well-trained athlete, participated in the 2016 ...

Assignment - dijkstra algorithmdijkstras algorithm finds

Assignment - Dijkstra Algorithm Dijkstra's algorithm finds the shortest path from a given node to all other nodes. 1) We observe that we can modify this algorithm to stop as soon as a particular node is reached; thus pro ...

Submit an annotated bibliography that includes the

Submit an annotated bibliography that includes the following: At least one resource from each of the following categories: Culture-specific information about your own culture Articles about a tradition, value, or belief ...

You are evaluating two different silicon wafer milling

You are evaluating two different silicon wafer milling machines. The Techron I costs $255,000, has a three-year life, and has pretax operating costs of $68,000 per year. The Techron II costs $445,000, has a five-year lif ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As