Extensible Style Language (XSL)


Problem 1
Create the files: people.xml and people.xsl as shown below. When ready, open the people.xml file using Internet Explorer.

PeopleXml

PeopleXsl

PeopleIe

Tip
You may combine HTML, XML, CSS in a XSL file to display and manipulate the data in a XML file.

Problem 2
Save the people.xml file as people1.xml; then replace the word male with an upper M, female with an upper F. Create the people1.xsl file that illustrates how to perform a conditional replacement. Be sure to use the people1.xsl file in the people1.xml file.

People1Xml

People1Xsl

People1Ie

Tip
XSL has four parts:
  1. XSLT a language for transforming XML documents
  2. XPath a language for navigating XML documents
  3. XSL-FO a language for formatting XML documents (deprecated 2013)
  4. XQuery a language for querying XML documents

© Copyright 2000-2019 Wintempla selo. All Rights Reserved. Sep 05 2019. Home