XML technologies / SpreadsheetML / SpreadsheetML introduction
With the Office 2007 suite, Microsoft, the undisputed market leader in office applications, took another step towards standardising and opening its file formats. In Microsoft Office 2003, Word and Excel already provided an XML interface (eXtensible Markup Language). This introduced the first versions of the XML languages WordML (WordprocessingML) for Word and SpreadsheetML for Excel. An additional save format lets users save Excel or Word files as XML for further processing. Conversely, XML documents with the required structure can be opened in the corresponding application as Excel or Word documents.
The languages introduced then, SpreadsheetML and WordML, differ considerably in implementation completeness. WordML represents most Word constructs, while Office 2003 saves only rudimentary Excel files as SpreadsheetML. Charts, graphics and other worksheet objects, for example, cannot be represented in SpreadsheetML documents.
For Office 2007, Microsoft further developed WordML and SpreadsheetML and created an XML language for PowerPoint: PresentationML. In all three applications, the default formats DOCX, XLSX and PPTX now use these XML languages and must support every application feature. These are container formats combining several XML documents into one file. Word 2007 and PowerPoint 2007 also offer a single-XML-document format without a container. Excel 2007, by contrast, offers only the rudimentary 2003 XML interface as a non-container XML alternative to XLSX. Combining multiple documents makes XLSX considerably more complex.
Microsoft’s openness strategy also included standardisation. Following controversial discussions and irregularities during the process, ISO standardised the formats on 2 April 2008 as ISO/IEC 29500:2008. ECMA had already approved Ecma Standard 376 in December 2006. Officially named Office Open XML (OOXML), it includes WordML, SpreadsheetML, PresentationML, the complementary language DrawingML (for drawing objects) and Open Packaging Conventions (OPC), describing the internal structure of DOCX, XLSX and PPTX containers.
Excel’s relatively new XML interfaces particularly help companies with database-based information export their data to Excel, since databases generally have XML interfaces too. Thanks to Office’s widespread use, the resulting documents can be sent to customers or used for further calculations.
Developers must therefore design a workflow converting a database’s XML output into OOXML-compliant XML. More precisely, several XML documents must be generated and combined into a valid XLSX document. The language XSLT (eXtensible Stylesheet Language Transformation) is best suited to XML-to-XML transformations because it was designed for precisely this task.
Read more about Excel & OOXML
Open Packaging Conventions (OPC) describes the internal structure of the XLSX format.
SpreadsheetML and DrawingML have many special features, including basic Excel spreadsheet functions (SpreadsheetML) or positioning images and charts on a worksheet (DrawingML).
| |
|