IT NEWS     Sustainability    Get JOB ALERTS that match your skills
Technology news and Jobs arrow Information Technology News arrow Linux and Windows interoperability with OpenXML
Linux and Windows interoperability with OpenXML PDF E-mail
User Rating: / 45
PoorBest 
by David M Williams   
Monday, 17 September 2007
In the past, I have been less than flattering over Microsoft’s OpenXML document format. Make no mistake, an open file format is definitely a must-have but is OpenXML the right one? Nevertheless, OpenXML exists so let’s be pragmatic about it: OpenXML can bridge the gap between Windows and Linux. In fact, it can open up whole new opportunities for Linux coders to produce documents in a Microsoft-friendly format.
Previously, I questioned the need for a new standard given there already is a standardised open document format. We also wondered how significant Ecma ratification was anyway, given Ecma's own web site says it is not a standards body but instead a vendor-supported body that will facilitate red-tape and the pushing through of documents through the ISO processes.

Before we begin, let's be clear about two things: firstly, my views do not necessarily reflect that of ITWire or its editors. Secondly, this story is not making any value judgment on OpenXML vs ODF. Instead, I'm saying, "ok, OpenXML exists. Here's a bunch of stuff you can do with it." Perhaps some might say you can achieve the same things if only Microsoft adopted the existing ISO standard instead - and that's cool; just because I say "here's something you can do in OpenXML" you shouldn't interpret that as meaning "OpenXML is the greatest thing in the world."

Now, credit where credit is due, this story didn’t come to me from my own keen thought processes. Rather, Microsoft expressed disappointment at my views and said “a better story” would have been the positive benefits OpenXML can bring the interoperability between different operating systems, aka Windows and Linux.

That's a fair point; Microsoft have published the specifications for the XML-based file formats used throughout their latest Office suite applications. Never before have alternate applications had the same opportunity to offer 100% compatibility. In the past, rival suites which purported to open such documents could not guarantee complete success: this is no longer the case and major vendors are taking it up. The Novell edition of Open Office supports OpenXML. The Gnumeric open source spreadsheet supports OpenXML. And Corel have announced their support of OpenXML.

What’s more, an XML-based specification has a massive advantage over a binary file format – by virtue of using XML, a program’s support for OpenXML does not have to be full-blown. It’s now possible to produce simple utilities which operate over Microsoft Office documents, performing their own work but safely ignoring everything else at no risk of damaging the document. Such a utility might be a command-line global search-and-replace, for example, which swiftly processes a batch of documents in one sweep. Or, perhaps a utility which reduced the colour depth (and thus dramatically shrink the file size) of all embedded images within a set of specified documents. In these hypothetical cases the developer would not have to understand or implement the entire OpenXML specification. (Although to find the relevant information, they would still have to wade through the 6,000 page description!)

This is the approach crafty developers worldwide have been taking. OpenXMLDeveloper.org is building a repository of these with RSS subscription available. Here’s some of the more interesting ones.

PHPExcel

One developer demonstrates how to dynamically create invoices within a PHP-powered web application that are in Microsoft Excel format.

This code sample is compelling; firstly, the originating server can be a Linux box or indeed any other machine that is capable of hosting PHP. There need not be any proprietary libraries or run-times installed. In fact, previously, generating Excel documents on-the-fly was a tedious process even for Windows developers; a .NET web site had to rely on “primary interop assemblies” (PIAs) to communicate with non-.NET Office APIs.



 
< Next story in category   Previous story in the category >
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff
Subscribe to our free e-newsletter
First name:
Last name:
Your email address:
Your role:
Your industry:
Australian state:
Country:
Enter the security code shown:
mandatory
Contact , Register , Advertise with iTWire , Links , About iTWire , Feedback , Post your jobs , Events , iTWire site map , Start Blogging , MyBlogLog page
Industry Releases , Submit your release now