From the course: XML Essential Training
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: BusinessCard XSLT
From the course: XML Essential Training
Challenge: BusinessCard XSLT
(techno music) - [Instructor] It's time for an XSLT themed programming challenge. For this challenge, you're going to build a style sheet that transforms the data in this businesscards.xml file. And you can see it contains multiple business cards and it's going to be transformed into an HTML page that lists the information from each business card in a table. So let me show you what the result is going to look like so you know what you're going to build. So I'm going to go into my finished folder and I'm going to open this in the live server and that's going to be this business cards. Alright, so this is the finished result. You can see that the HTML page contains two things. One, it's the number of business cards that there are. So that's part of the challenge you're going to have to build. And there's a table that contains the data from each one of the business cards. So there's the name, there's the primary phone number, not all the phone numbers, just the primary phone number, and…
Contents
-
-
-
-
-
-
-
-
-
(Locked)
What is XSLT?4m 10s
-
(Locked)
Defining XSLT style sheets3m 35s
-
(Locked)
Simple XSLT4m 6s
-
(Locked)
Repeating items5m 13s
-
(Locked)
Conditional logic6m 47s
-
(Locked)
Sorting data2m 24s
-
(Locked)
XSLT in the browser6m 26s
-
(Locked)
Challenge: BusinessCard XSLT2m 44s
-
(Locked)
Solution: BusinessCard XSLT1m 57s
-
(Locked)
-
-
-