blob: e0bf57022988fa475440f79457727239bc9a7640 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file was converted to xhtml by OpenOffice.org - see http://xml.openoffice.org/odf2xhtml for more info.--><head profile="http://dublincore.org/documents/dcmi-terms/"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title xml:lang="de-DE">XSL transformation from 'OpenOffice.org XML' to 'XHTML 1.0'</title><meta name="DCTERMS.title" content="XSL transformation from 'OpenOffice.org XML' to 'XHTML 1.0'" xml:lang="de-DE"/><meta name="DCTERMS.language" content="de-DE" scheme="DCTERMS.RFC4646"/><meta name="DCTERMS.source" content="http://xml.openoffice.org/odf2xhtml"/><meta name="DCTERMS.issued" content="2005-11-17T15:11:55" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.contributor" content="XSLTFILTER10 cws"/><meta name="DCTERMS.modified" content="2008-07-16T23:18:14.37" scheme="DCTERMS.W3CDTF"/><meta name="DCTERMS.provenance" content="" xml:lang="de-DE"/><meta name="DCTERMS.subject" content="XSL transformation from 'OpenOffice.org XML' to 'XHTML 1.0', xslt xhtml opendocument openoffice.org" xml:lang="de-DE"/><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" hreflang="en"/><link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" hreflang="en"/><link rel="schema.DCTYPE" href="http://purl.org/dc/dcmitype/" hreflang="en"/><link rel="schema.DCAM" href="http://purl.org/dc/dcam/" hreflang="en"/><base href="."/><style type="text/css">
@page { size: 21.59cm 27.94cm; margin-top: 2cm; margin-bottom: 2cm; margin-left: 2cm; margin-right: 2cm }
table { border-collapse:collapse; border-spacing:0; empty-cells:show }
td, th { vertical-align:top; font-size:12pt;}
h1, h2, h3, h4, h5, h6 { clear:both }
ol, ul { margin:0; padding:0;}
li { margin:0; padding:0;}
li span.odfLiEnd { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
span.footnodeNumber { padding-right:1em; }
* { margin:0; }
.Contents_20_1 { font-size:12pt; font-family:Thorndale; margin-left:0cm; margin-right:0cm; text-indent:0cm; }
.Contents_20_2 { font-size:12pt; font-family:Thorndale; margin-left:0.499cm; margin-right:0cm; text-indent:0cm; }
.Contents_20_Heading { font-size:16pt; margin-bottom:0.499cm; margin-top:0.423cm; font-family:Albany; margin-left:0cm; margin-right:0cm; text-indent:0cm; font-weight:bold; }
.Heading_20_2 { font-size:18pt; margin-bottom:0.499cm; margin-top:0.423cm; font-family:Thorndale; font-weight:bold; }
.P1 { font-size:12pt; margin-left:0.499cm; margin-right:0cm; text-indent:0cm; font-family:Thorndale; }
.P3 { background-color:transparent; font-size:12pt; font-weight:bold; margin-bottom:0.499cm; margin-top:0cm; text-align:center ! important; font-family:Thorndale; vertical-align:middle; }
.P4 { background-color:transparent; font-size:12pt; margin-bottom:0.499cm; margin-top:0cm; text-align:left ! important; font-family:Thorndale; vertical-align:middle; }
.P5 { font-size:12pt; margin-bottom:0.499cm; margin-top:0cm; text-align:justify ! important; font-family:Thorndale; }
.P6 { font-size:12pt; margin-bottom:0.499cm; margin-top:0cm; text-align:left ! important; font-family:Thorndale; }
.P7 { font-size:12pt; margin-bottom:0cm; margin-top:0cm; text-align:justify ! important; font-family:Thorndale; }
.P8 { font-size:12pt; margin-left:0cm; margin-right:0cm; text-indent:0cm; font-family:Thorndale; }
.P9 { font-size:24pt; font-weight:bold; margin-bottom:0.499cm; margin-top:0.423cm; font-family:Thorndale; }
.Table_20_Contents { font-size:12pt; margin-bottom:0.499cm; margin-top:0cm; text-align:center ! important; font-family:Thorndale; background-color:transparent; vertical-align:middle; }
.Table_20_Heading { background-color:transparent; font-size:12pt; margin-bottom:0.499cm; margin-top:0cm; text-align:center ! important; font-family:Thorndale; vertical-align:middle; font-weight:bold; }
.Text_20_body { font-size:12pt; font-family:Thorndale; margin-top:0cm; margin-bottom:0.499cm; text-align:justify ! important; }
.Sect1 { background-color:transparent; }
.Stylesheets { width:32.212cm; margin-left:0cm; margin-right:-0.011cm; float:none; }
.Stylesheets_A1 { padding:0.097cm; border-left-width:0.0133cm; border-left-style:solid; border-left-color:#000000; border-right-style:none; border-top-width:0.0133cm; border-top-style:solid; border-top-color:#000000; border-bottom-width:0.0133cm; border-bottom-style:solid; border-bottom-color:#000000; }
.Stylesheets_A2 { padding:0.097cm; border-left-width:0.0133cm; border-left-style:solid; border-left-color:#000000; border-right-style:none; border-top-style:none; border-bottom-width:0.0133cm; border-bottom-style:solid; border-bottom-color:#000000; }
.Stylesheets_C1 { padding:0.097cm; border-width:0.0133cm; border-style:solid; border-color:#000000; }
.Stylesheets_C2 { padding:0.097cm; border-left-width:0.0133cm; border-left-style:solid; border-left-color:#000000; border-right-width:0.0133cm; border-right-style:solid; border-right-color:#000000; border-top-style:none; border-bottom-width:0.0133cm; border-bottom-style:solid; border-bottom-color:#000000; }
.Stylesheets_A { width:5.392cm; }
.Stylesheets_B { width:8.446cm; }
.Stylesheets_C { width:18.374cm; }
.Internet_20_link { color:#000080; text-decoration:underline; }
<!-- ODF styles with no properties representable as CSS -->
.Sect2 .Endnote_20_Symbol .Footnote_20_Symbol { }
</style></head><body dir="ltr" style="max-width:21.59cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; "><h1 class="P9"><a name="_XSL_Transformation_from_ODF_to_XHTML"><span style="margin-right:0.381cm;"/></a>XSL Transformation from ODF to XHTML<span style="margin-left:;"/></h1><p class="Contents_20_Heading">Contents</p><p class="P8"> </p><p class="P1"><a href="./#1.1.Abstract|outline" class="Internet_20_link">Abstract</a></p><p class="P1"><a href="./#1.2.Use without Office (stand-alone)|outline" class="Internet_20_link">Use without Office (stand-alone)</a></p><p class="P1"><a href="./#1.3.Overview over XSLT stylesheets |outline" class="Internet_20_link">Overview over XSLT stylesheets </a></p><p class="P1"><a href="./#1.4.Feedback|outline" class="Internet_20_link">Feedback</a></p><h2 class="Heading_20_2"><a name="_Abstract"><span style="margin-right:0.381cm;"/></a>Abstract</h2><p class="Text_20_body">The filter creates <a href="http://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/xhtml-math11-f.dtd">XHTML 1.1 plus Math 2.0</a> from the <a href="http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office">OASIS Open Document Format for Office Applications (OpenDocument)</a>. The filter can only be used to transform OpenDocument with or without a running Office, cp. 'Use without Office (stand-alone).</p><p class="Text_20_body">The XHTML export filter has matured since it's beginning early 2000, were it was first part of a commercial product named StarPortal/Webtop. In conjunction with OpenOffice.org the stylesheets had been open-sourced.</p><p class="Text_20_body">Now as a sample filter, it is an optional installation component of OpenOffice.org 3.x, installed together with the 'XSLT sample filter' package. Within the Office the filter can be used when choosing the XHTML export from File-&gt;Export...</p><h2 class="Heading_20_2"><a name="_Use_without_Office__stand-alone_"><span style="margin-right:0.381cm;"/></a>Use without Office (stand-alone)</h2><p class="P6">The filter comprises of a set of XSLT 1.0 stylesheets and will work in combination of many XML parser and XSLT stylesheet processor. Unfortunately not all, as the filter although based on the XSLT 1.0 standard, takes advantage of the non-standarized 'node-set' function. Therefore it is necessary to choose one of the following XSLT stylesheet processors</p><ul style="margin-left:1.25cm;"><li class="P7" style="margin-left:0cm;"><p class="P7" style="margin-left:0.25cm;"><a href="http://saxon.sourceforge.net/">Saxon processor</a></p></li><li class="P7" style="margin-left:0cm;"><p class="P7" style="margin-left:0.25cm;"><a href="http://xml.apache.org/xalan-j/index.html">Apache Xalan processor</a></p></li><li class="P7" style="margin-left:0cm;"><p class="P7" style="margin-left:0.25cm;"><a href="http://www.blnz.com/xt/index.html">XT processor</a> </p></li><li class="P5" style="margin-left:0cm;"><p class="P5" style="margin-left:0.25cm;">or any other XSLT processor supporting the <a href="http://exslt.org/exsl/index.html">http://exslt.org/common</a> node-set function.</p></li></ul><p class="Text_20_body">The <a href="http://saxon.sourceforge.net/">Saxon processor</a> is bundled since OpenOffice.org 3.0 and used by default. As the Java base-line since OOo 3 is Java 5 0 no further XML parser is necessary.</p><h2 class="Heading_20_2"><a name="_Overview_over_XSLT_stylesheets_"><span style="margin-right:0.381cm;"/></a>Overview over XSLT stylesheets </h2><p class="Text_20_body">All stylesheets can be installed by choosing as optional part of the Office installation ('XSLT sample filter'). In a OOo 3.0 the files are located at &lt;OFFICE_PATH&gt;/OpenOffice.org/Basis 3.0/share/xslt.    </p><p class="Text_20_body">To view them online, you may browse the <a href="http://framework.openoffice.org/source/browse/framework/filter/source/xslt/">CVS</a> and choose the 'download' link beyond the latest version of a stylesheet.</p><table border="0" cellspacing="0" cellpadding="0" class="Stylesheets"><colgroup><col width="236"/><col width="369"/><col width="803"/></colgroup><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A1"><p class="Table_20_Heading">Path</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A1"><p class="Table_20_Heading">Document </p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C1"><p class="P3">Description</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">common</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">measure_conversion.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Measure conversions (e.g. inch to cm) usable for all import and export XSLT filter.<br/>NOTE: This class is outside the odf2xhtml folder as it is being reused by other filters and have to be moved to odf2xhtml/common during execution time.</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">body.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mapping mechanisms of elements of languages similar to XHTML (WML, other XML for small devices, et alias)</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table_of_content.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mapping mechanisms of tables</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/styles</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">style_collector.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mechanisms to flatening the style hierarchy of the ODF styles</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/styles</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">style_mapping_css.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mapping of ODF styles to CSS</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/table</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mechanisms to map ODF tables to HTML (once shared by HTML3.2 and PALM HTML)</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/table</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table_cells.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mechanisms to map ODF table cells to HTML (once shared by HTML3.2 and PALM HTML)</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/table</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table_columns.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mechanisms to map ODF table columns to HTML (once shared by HTML3.2 and PALM HTML)</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/common/table</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table_rows.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Common mechanisms to map ODF table rows to HTML (once shared by HTML3.2 and PALM HTML)</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/xhtml</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">The starting stylesheet for XHTML transformations</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/xhtml</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">body.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Special XHTML mappings of body elements to XHTML</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/xhtml</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">header.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Special XHTML mappings of header elements to XHTML</p></td></tr><tr><td style="text-align:left;width:5.392cm; " class="Stylesheets_A2"><p class="Table_20_Contents">odf2xhtml/export/xhtml</p></td><td style="text-align:left;width:8.446cm; " class="Stylesheets_A2"><p class="Table_20_Contents">table.xsl</p></td><td style="text-align:left;width:18.374cm; " class="Stylesheets_C2"><p class="P4">Special XHTML mappings of table elements to XHTML</p></td></tr></table><h2 class="Heading_20_2"><a name="_Feedback"><span style="margin-right:0.381cm;"/></a>Feedback</h2><p class="Text_20_body">Any comment is welcome and should be posted to the XML developer mailing list <a href="mailto:dev@xml.openoffice.org">dev@xml.openoffice.org</a>. For subscription information or archives, see the this project's <a href="http://xml.openoffice.org/servlets/ProjectMailingListList">mailing list section</a>. </p></body></html>