Extensible Style Language (XSL)


Problem 1
Create the files: people.xml and people.xsl as shown below. When ready, publish these two files in a Web Server, and then, open the XML file using any Internet browser.

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-2021 Wintempla selo. All Rights Reserved. Jul 22 2021. Home