
XML DEVELOPER
XSL FO get "Real"
11.21.2001
Rating: -3.75- (out of 5)




|
XSL FO get "Real"
Ed Tittel
Those XML cognoscenti who've been following the XML Stylesheet Language, or XSL, for any length of time already know that there are two flavors of style for XML documents:
One problem with using CSS and XML together is that the syntax is pretty cumbersome. It's also not a well-supported combination in various editing tools and environments available on the market. And finally, CSS uses a substantially different form of markup from XML, with its own unique syntax rules and structures. Learning CSS involves climbing an entirely separate learning curve from learning XML and XML applications in general.
By contrast, using XSL-FO with XML applications uses the same syntax for the basic markup of documents as it does for formatting those documents -- and transforming them with XSLT as well. Most experts believe that XSLT and XSL-FO adumbrations to basic XML documents will become increasingly prevalent in the years ahead. A single learning curve for notation makes the burden of learning various forms of style less onerous than it might otherwise be.
My reason for claiming that XSL-FO is getting more real in the title of this piece hangs on a small but growing number of tools that support XSL-FO. Probably most important is the inclusion of the FOP (or formatting objects processor) into the latest release of the Apache XML project code base, which gives many sites the ability to format XML in PDF, PCL, SVG, Print, ASCII text, and other forms. This makes it easy to "serve up" XML, yet format it into a variety of legible or printable formats. I might point out, perhaps tangentially, that without an XSL-FO processor, use of this style languag
To continue reading for free, register below or login
To read more you must become a member of SearchSOA.com
');
// -->

e is an entirely academic exercise -- that's why I give this development a "most important" status.
From a tools perspective on the authoring side, XML-Spy just added support for XML-FO to its already formidable bag of tricks (which includes support for XSLT, XML Schema, XHTML, and a bunch more interesting stuff) on October 19, 2001. Be sure to look for version 4.1 or a higher-numbered version to get this support. Likewise, Novosoft offers an RTF2FO converter program that auto-generates XSL-FO templates from Rich Text Format (RTF) files, which in turn work with files output from all kinds of editors, word processors, and other text and layout tools.
Finally, for those who learn best by example (including me), be sure to check out the great XSL and FOP examples in the Example Repository at http://www.zvon.org/HowTo/Output/index.html (be sure to expand the example hierarchy in the left-hand column beneath XSL-FO to see those examples, or you might miss them altogether). If you're anything like me, a well-documented example is worth as much as any number of specification pages when it comes time to understanding how this stuff really works!
In closing, here are pointers to other resources and tools mentioned elsewhere in this tip:
Have questions, comments, or feedback about this or other XML-related topics? Please e-mail me care of tips@searchmiddleware.com; I'm always glad to hear from my readers.
Ed Tittel is a principal at LANWrights, Inc., a wholly owned subsidiary of LeapIt.com. LANWrights offers training, writing, and consulting services on Internet, networking, and Web topics (including XML and XHTML), plus various IT certifications (Microsoft, Sun/Java, and Prosoft/CIW).
 |

|
|
 |
|
 |