0% found this document useful (0 votes)
59 views

XML Unit-5 Assignment

The document outlines 9 practical assignments involving creating XML documents with various data and then using XSLT to transform and display the data. The assignments involve adding records, displaying data in tables, filtering by conditions, sorting, and formatting output.

Uploaded by

Solo Patel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

XML Unit-5 Assignment

The document outlines 9 practical assignments involving creating XML documents with various data and then using XSLT to transform and display the data. The assignments involve adding records, displaying data in tables, filtering by conditions, sorting, and formatting output.

Uploaded by

Solo Patel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GLS University

Faculty of Computer Applications and IT


0301406: Introduction to XML
Practical Assignment 5
1. Create an XML document which include,
emp_info(employee(emp_name, empID as an attribute), firstname and
lastname,address,mobileno))

Write an XSLT to perform the following:


• Add the 5 records
• Display all the in table format
• Add the SR no collumn and set the format as E1.
2. Write an XML document which includes
Order_Detail(OrderNumber, Orderate, OrderAmount,ItemPrice,
ItemName, Quantity)
Create XSLT file which will
• Add the 5 records
• Display all the details in formated table.
• Display the records whose amount is more than 10000
• Display the records having quantity > 10
3. Create an XML document Books where it contains the following data :
Books (book (title) as an attribute , author , year , publisher ).

Write XSLT document


• Add 5 records.
• Displays books published <1998
4. Create XML document for Business where it contains the following
data: Business Name(name as an attribute), Income, Tax,
GST_Number)
• Add 5 data.
• Create XSLT file which will sort lowest Tax wise all the details
in formated table. Also Tax data must be display in blue color
5. Create XML document for Student where it contains the following
data:
Student Name, Personal Info (Address, Birthdate,Gender, Mobile
No, Address) ,Result

Create XSLT file which will sort result wise all the details in formated
table.
6. Write XML file containing following information about employee-
emp_info(employee(emp_name: empID as an attribute), firstname and
lastname, phoneNumber))
Write an XSLT file which converts the above xml file into html file
based
on following way-
1. Display a heading Emp_name, followed by the employee's name
(firstname and last name)
2. Display phoneNumber below this, in same font but diffrent colour.
7. Create an XML document Email where it contains the following data :
Student (Roll_no , Name , Marks , Rank)

Create XSLT file which may satisfy following conditions:


if Rank <=5 display “top Students”
if Rank >5 and Rank <=10 display “Top 10 students”
else display “Average Students”

8. Create an XML document Student where it contains the following


data :
Student (Roll_no , Name , Marks , Rank, Result)
Create XSLT file which may satisfy following conditions:
when Marks >=70 than Result=”dist”
when Marks >=60 and <70 than Result=”first”
when Marks >=40 and <60 than Result=”second”
otherwise Result=”fail”
9. Create an XML document Student where it contains the following
data :
Student (Roll_no , Name , Marks , Rank, Result)
Create XSLT file where Roll_no should start with number 1. take 10
students details.

You might also like