Home > SOA Tips > XML Developer > XSL FO get "Real"
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

XML DEVELOPER

XSL FO get "Real"


11.21.2001
Rating: -3.75- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


 

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:

  • XSL-Transformations: this set of specifications permits XML documents to be transformed from one XML document definition to another, or in a variety of alternate forms including HTML, XHTML, ASCII-text, and more. Often written as XSLT (and sometimes as XSL(T)), these specifications are further along and therefore better known than the next item. In essence, XSLT exists to transform XML documents into some other form or format.
  • XSL-Formatting Objects: this set of specifications is still under development, but permits formatting controls to be associated with XML markup elements, in much the same way that Cascading Style Sheets (or CSS) work with HTML, XHTML, and XML. Often written as XSL-FO (and only seldom as XSL(FO)), as is the case with many native XML-based markup applications, XSL-FO is more powerful and sophisticated than its CSS predecessor.

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 language 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).

Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
XML
National Weather Service policy supports XML
XML and democracy at work: The Election Markup Language (EML)
For interesting interface access, check out Xamlon
Royalty-free, revolutionary UBL
Altova strikes again with MapForce 2005
Beating the RSS crunch with aggregation/bloglines
Voice, speech, SIP, and XML: ECMA-269
Microsoft Baseline Security Analyzer and XML
An open source, native XML database: dbXML 2.0
Second-generation XML security preview: SAML

XML Developer
Use the soapUI software tool to tame WSDL
WSDL 2.0, new messaging for Web services
Using RELAX NG For data integration
Efficient XML Interchange tackles data verbosity
XML to DDL imports, synchronizes database schemata
The basics of MathML 3.0
Migrating to XSLT 2.0
What's up with XML 2.0?
Say hello to XPath 2.0
Podcasting software covers many bases

XML and XML schema
What's the future of XML?
SOA pattern of the week (#7): policy centralization
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
What's new at the W3C
Ganymede: Modeling tools target SOA, UML
Data services mashups emerge for SOA
Making sense of data services mashups
XML turns 10
SOA helps save 100-year-old business
Oracle maps heterogeneous data services strategy for SOA

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
class diagram  (SearchSOA.com)
Fast Infoset (FI)  (SearchSOA.com)
GeoRSS  (SearchSOA.com)
Keyhole Markup Language  (SearchSOA.com)
RELAX NG  (SearchSOA.com)
state diagram  (SearchSOA.com)
Universal Business Language  (SearchSOA.com)
Vector Markup Language  (SearchSOA.com)
XML infoset  (SearchSOA.com)
XML pipeline  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts