Upcoming Events

Executive conference

Cloud Connect March 16-18

Comprehensive thought leadership for executives, IT professionals and developers. Topics include: the ROI, cost and economics of on-demand computing; Migration strategies to move from on-premise to cloud-based IT; Vertical cloud specialization, tailoring features and architectures to specific applications, industries, and customer ecosystems

More Events »

Subscribe to Newsletter

  • Keep up with all of the latest news and analysis on the fast-moving IT industry with Network Computing newsletters.
Sign Up
Technology Business Applications
B U Y E R ' S   G U I D E  
XSLT Editors

  September 15, 2003
  By Lori MacVittie


TOC Issue TOC
Printer Print full article
Printer Print this page
Printer Download as PDF
E-Mail E-Mail this URL
Discuss Discuss this article
flame author Flame the author
 
  In this article
arrow
Introduction
arrow
Must Haves | Bonus Features
arrow
Interactive Buyer's Guide
arrow
XSLT Editors
arrow
Chart
arrow
Customize Chart
arrow
Product Directory
arrow
Search

XML is likely being used within your organization as a means of transferring data between internal applications or as a mechanism for exchanging data with your business partners. Although XML is by definition flexible, that trait can cause some problems when data is passed around among applications.

For instance, you may have massaged an XML document so it would meet a particular application's data needs. If so, you're familiar with XSL (Extensible Stylesheet Language) and XSLT (XSL Transformation). Even die-hard Web gurus who prefer editing tools such as vi and notepad can appreciate the features and functionality of an XSLT editor--especially when debugging transformations or trying to use an external XSLT engine.

There is a multitude of XSLT editors on the market, so make sure your choice provides all the essentials.

External XSLT Engine Support

The most commonly used XSLT engines are MSXML3, Saxon, XT and Xalan. The output from these XSLT engines may vary from that of others, and each product has its own quirks. Because of these slight but important processing differences, it's imperative that an organization use a single XSLT engine throughout its project-development life cycle. This ensures that transformations perform identically in development and in production. It also provides enterprisewide consistency and encourages XSLT code reuse. Therefore, the XSLT editor you choose must include support for external engines so you can specify the engine on which your organization has standardized.


In addition, as XSLT becomes more pervasive--particularly in the Web services arena--the speed at which an engine can perform transformations is critical. Hardware-based XSLT engines, such as DataPower's XA35, are crucial to the success of your XML-based projects. But to take advantage of such products, an editor must be able to use an alternative external XSLT engine.

Full Debugger

An XSL transformation may include data manipulation, such as mathematical calculations, iterations over sequences of elements and even the restructuring of data elements within the original XML document. These processes are no different than those used with C or Java code, so it's imperative that your XSLT editor include a full debugger. When things go wrong, you'll want to be able to walk through the transformation. Though "print" statements littered throughout your code is one method of debugging, it's not efficient. A full debugger with step capabilities, break points and watch points makes the debugging process immeasurably easier.

A large portion of XSLT consists of finding specific elements within an XML document, then performing some sort of manipulation on the element or subelements. To search efficiently through an XML document, which can be large, many editors use XPath.

XPath queries can be complicated and may involve the use of specific functions, such as local-name() and position(). Although XSL provides some mechanisms for manipulating elements, it is rare to find XSLT without XPath, which provides the basic syntactical constructs necessary to select and address nested elements.

A good XSLT editor should support XPath queries and help you evaluate them. XPath analysis can speed up the construction of XSLT by letting you test XPath queries to see the resulting node. Such analysis removes the need to run the transformation in order to determine whether your XPath query is correct.

Tag Handling

No development environment would be complete without color syntax highlighting. Even the most rudimentary editor should provide customizable highlighting and support not only XSLT but XSL, XML and HTML.

XSLT editors' tag handling capabilities have grown considerably and are now almost on a par with a professional C/C++/Java environment. Features such as drop-down lists make writing XSLT a breeze. The "automatic but optional feature" lists attributes with mandatory values and can reduce mistakes and save you time.

Miscellaneous Goodies

Version-control integration really should be a requirement. Project-based management of files--keeping your XSL, XSLT and other related files together--is another. Finally, a hierarchical, tree-based view of your XML is a great option, especially if provided internally rather than through an external browser.

Lori MacVittie is a Network Computing technology editor working in our Green Bay, Wis., labs. Write to her at lmacvittie@nwc.com.

Post a comment or question on this story.


start top Introduction Must Haves | Bonus Features 

Best of the Web

Data deduplication: Declawing the clones

Data deduplication is emerging as a critically important new arrow in the storage administrator's quiver to answer hard questions about the increasing problem in storage growth costs.

Quick Read

Compression, Encryption, Deduplication, and Replication: Strange Bedfellows

One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.

Quick Read

WAN Optimization Whitelists and Blacklists

Optimization is a fantastic way of saving money and creating really happy customers at the same time, but it doesn't work flawlessly for all applications.

Quick Read

WAN Optimization as a Managed Service: It's Not About the Cost

This insight examines how organizations outsourcing their WAN optimization initiatives to a third-party go about achieving their goals for application performance, reducing operational costs, and streamlining enterprise infrastructure.

Quick Read

  Sponsored Links

Premium Content

Data Centers Gone Wild
February 22, 2010

NWC


Salary

Video