XML technologies / XSLT / XSLT Cookbook / Recipes for vertical XSLT applications

(Excerpt from “XSLT Kochbuch” by Sal Mangano)

"A newcomer wonders if there's a secret handshake or code required to delve into its riddles . . .
such as knowing what to bring to a potluck."

From a book review of Potluck: Stories That Taste Like Hawaii

Introduction

This chapter differs from all the others because its examples are miniature XSLT applications covering a broad range of uses, rather like a dinner where guests bring their own dishes: a potluck, if you like. Many examples use particular commercial software. As software vendors increasingly adopt XML, opportunities arise to use their products in ways they never dreamed of, or never got around to implementing.

Microsoft is one vendor that has jumped on the XML bandwagon. The current versions of Microsoft Visio (version 10.0) and Excel (Office XP version 10.0) both support XML output. Visio is a proprietary vector drawing program, and its XML output, called Visio VDX, is also Visio-specific. John Breen did admirable work converting this output to SVG (Scalable Vector Graphics). His code appears in recipe Converting Visio VDX documents to SVG.

Microsoft Excel can also save tables ( spreadsheets) in XML. Unfortunately, this XML directly maps the structure of an Excel spreadsheet. Recipe Working with Excel XML spreadsheets shows how to convert it into a more usable form.

Topic Maps are an emerging XML technology for modeling knowledge so that web information becomes more usable for both people and computers. XTM is an open standard for representing Topic Maps in XML. Similarly, software developers model system knowledge using UML (Unified Modeling Language). UML has its own standard XML representation, XMI (XML Metadata Interchange). Although UML and Topic Maps target different audiences, UML is rich enough to express the relevant Topic Map concepts if you follow certain conventions. UML has been around longer, so its software tools are more mature. Recipe Generating XTM Topic Maps from UML models via XMI shows how to convert the XMI output of a widely used UML tool (Rational Rose) into XTM Topic Maps. You could call this a recipe for acronym-conversion software.

One of XTM’s most useful features is website generation. Recipe Generating websites from XTM Topic Maps covers this use of Topic Maps. Contributed by Nikita Ogievetsky, it builds on his work on the framework Cogitative Topic Maps Web Site (CTW).

We close the chapter with a brief SOAP opera, the W3C XML format for implementing web services. SOAP (Simple Object Access Protocol) lets software systems communicate using standardized XML messages. This section covers a SOAP-related draft specification called WSDL (Web Service Definition Language). As the name suggests, WSDL is an XML specification for documenting SOAP services. The discussion shows how to convert WSDL into documentation for human readers.

  

  

 

 

 

back to top