O'Reilly logo

Special Edition Using XSLT by Michael Floyd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

In Practice

Creating a Navigation Feature

This last example shows how a Web site might use XML and XSLT to support Web-site navigation. For example, a navigation bar on a Web site is a topical list located somewhere on the Web page, usually on the left side of the browser window. Other forms of navigation include the site map. In both cases, hyperlinks are provided that take you to different places on the site.

The idea is that you could use an XML document to maintain the information that goes into this navigation bar. When the site serves a Web page, a script uses the DOM to merge the XML navigation document with the page that’s being served (also an XML document). By maintaining this navigation information in a separate XML document, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required