1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?> 2*b1cdbd2cSJim Jagielski<!--*********************************************************** 3*b1cdbd2cSJim Jagielski * 4*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 5*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 6*b1cdbd2cSJim Jagielski * distributed with this work for additional information 7*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 8*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 9*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 10*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 11*b1cdbd2cSJim Jagielski * 12*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 13*b1cdbd2cSJim Jagielski * 14*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 15*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 16*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 18*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 19*b1cdbd2cSJim Jagielski * under the License. 20*b1cdbd2cSJim Jagielski * 21*b1cdbd2cSJim Jagielski ***********************************************************--> 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:style="http://openoffice.org/2000/style" xmlns:table="http://openoffice.org/2000/table" xmlns:text="http://openoffice.org/2000/text" xmlns:office="http://openoffice.org/2000/office" xmlns:fo="http://www.w3.org/1999/XSL/Format"> 25*b1cdbd2cSJim Jagielski <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" encoding="ISO-8859-1"/> 26*b1cdbd2cSJim Jagielski <!--doctype-system=[<!ENTITY acirc "">] --> 27*b1cdbd2cSJim Jagielski <xsl:strip-space elements="tokens"/> 28*b1cdbd2cSJim Jagielski <xsl:template match="office:document"> 29*b1cdbd2cSJim Jagielski <html> 30*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 31*b1cdbd2cSJim Jagielski </html> 32*b1cdbd2cSJim Jagielski </xsl:template> 33*b1cdbd2cSJim Jagielski <xsl:template match="office:document-content"> 34*b1cdbd2cSJim Jagielski <html> 35*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 36*b1cdbd2cSJim Jagielski </html> 37*b1cdbd2cSJim Jagielski </xsl:template> 38*b1cdbd2cSJim Jagielski <xsl:template match="office:automatic-styles"> 39*b1cdbd2cSJim Jagielski <style type="text/css">p.Table-Heading{font-weight:bold;}<xsl:apply-templates/> 40*b1cdbd2cSJim Jagielski </style> 41*b1cdbd2cSJim Jagielski </xsl:template> 42*b1cdbd2cSJim Jagielski <xsl:template match="office:styles"/> 43*b1cdbd2cSJim Jagielski <xsl:template match="office:meta"/> 44*b1cdbd2cSJim Jagielski <xsl:template match="office:settings"/> 45*b1cdbd2cSJim Jagielski <xsl:template match="style:style"> 46*b1cdbd2cSJim Jagielski <xsl:if test="@style:family ='paragraph'">p.<xsl:value-of select="@style:name"/>{<xsl:apply-templates/>}</xsl:if> 47*b1cdbd2cSJim Jagielski <xsl:if test="@style:family ='paragraph'">p.<xsl:value-of select="@style:name"/>{<xsl:if test="@style:parent-style-name='Table Heading'">font-weight:bold;font-style:italic;</xsl:if> 48*b1cdbd2cSJim Jagielski <xsl:apply-templates/>}</xsl:if> 49*b1cdbd2cSJim Jagielski <xsl:if test="@style:family ='table-cell'">td.<xsl:value-of select="@style:name"/>{<xsl:if test="@style:parent-style-name='Table Heading'">font-weight:bold;font-style:italic;</xsl:if> 50*b1cdbd2cSJim Jagielski <xsl:apply-templates/>}</xsl:if> 51*b1cdbd2cSJim Jagielski </xsl:template> 52*b1cdbd2cSJim Jagielski <xsl:template match="style:properties"> 53*b1cdbd2cSJim Jagielski <!--<xsl:param name="style" select="@fo:font-weight"/>--> 54*b1cdbd2cSJim Jagielski <xsl:if test="@fo:font-weight">font-weight:<xsl:value-of select="@fo:font-weight"/>;</xsl:if> 55*b1cdbd2cSJim Jagielski <xsl:if test="@fo:font-style">font-style:<xsl:value-of select="@fo:font-style"/>;</xsl:if> 56*b1cdbd2cSJim Jagielski <xsl:if test="@style:font-name">font-family:<xsl:value-of select="@style:font-name"/>;</xsl:if> 57*b1cdbd2cSJim Jagielski <xsl:if test="@fo:font-size">font-size:<xsl:value-of select="@fo:font-size"/>;</xsl:if> 58*b1cdbd2cSJim Jagielski <xsl:if test="@style:text-underline='single'">text-decoration:underline;</xsl:if> 59*b1cdbd2cSJim Jagielski <xsl:if test="@style:text-crossing-out='single-line'">text-decoration:line-through;</xsl:if> 60*b1cdbd2cSJim Jagielski <xsl:if test="@fo:text-align='start'">text-align:left</xsl:if> 61*b1cdbd2cSJim Jagielski <xsl:if test="@fo:text-align='center'">text-align:center</xsl:if> 62*b1cdbd2cSJim Jagielski <xsl:if test="@fo:text-align='end'">text-align:right</xsl:if> 63*b1cdbd2cSJim Jagielski <!--<xsl:value-of select="$style"/>--> 64*b1cdbd2cSJim Jagielski </xsl:template> 65*b1cdbd2cSJim Jagielski <xsl:template match="office:body"> 66*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 67*b1cdbd2cSJim Jagielski </xsl:template> 68*b1cdbd2cSJim Jagielski <xsl:template match="table:table"> 69*b1cdbd2cSJim Jagielski <table border="1" cellpadding="2" width="100%"> 70*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 71*b1cdbd2cSJim Jagielski </table> 72*b1cdbd2cSJim Jagielski </xsl:template> 73*b1cdbd2cSJim Jagielski <xsl:template match="table:table-header-rows"> 74*b1cdbd2cSJim Jagielski <th> 75*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 76*b1cdbd2cSJim Jagielski </th> 77*b1cdbd2cSJim Jagielski </xsl:template> 78*b1cdbd2cSJim Jagielski <xsl:template match="table:table-row"> 79*b1cdbd2cSJim Jagielski <tr> 80*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 81*b1cdbd2cSJim Jagielski </tr> 82*b1cdbd2cSJim Jagielski </xsl:template> 83*b1cdbd2cSJim Jagielski <xsl:template match="table:table-cell"> 84*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes"><td class="</xsl:text> 85*b1cdbd2cSJim Jagielski <xsl:value-of select="@table:style-name"/> 86*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes">"></xsl:text> 87*b1cdbd2cSJim Jagielski <!--<xsl:value-of select="."/>--> 88*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 89*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes"></td></xsl:text> 90*b1cdbd2cSJim Jagielski <!--<td width="20%"> 91*b1cdbd2cSJim Jagielski <xsl:apply-templates /> 92*b1cdbd2cSJim Jagielski </td>--> 93*b1cdbd2cSJim Jagielski </xsl:template> 94*b1cdbd2cSJim Jagielski <xsl:template match="text:p"> 95*b1cdbd2cSJim Jagielski <xsl:if test="ancestor-or-self::table:table-cell"> 96*b1cdbd2cSJim Jagielski <xsl:if test=".=''"> 97*b1cdbd2cSJim Jagielski <br/> 98*b1cdbd2cSJim Jagielski </xsl:if> 99*b1cdbd2cSJim Jagielski </xsl:if> 100*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes"><p class="</xsl:text> 101*b1cdbd2cSJim Jagielski <xsl:choose> 102*b1cdbd2cSJim Jagielski <xsl:when test="@text:style-name ='Table Heading'">Table-Heading</xsl:when> 103*b1cdbd2cSJim Jagielski <xsl:otherwise> 104*b1cdbd2cSJim Jagielski <xsl:value-of select="@text:style-name"/> 105*b1cdbd2cSJim Jagielski </xsl:otherwise> 106*b1cdbd2cSJim Jagielski </xsl:choose> 107*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes">"></xsl:text> 108*b1cdbd2cSJim Jagielski <xsl:apply-templates/> 109*b1cdbd2cSJim Jagielski <xsl:text disable-output-escaping="yes"></p></xsl:text> 110*b1cdbd2cSJim Jagielski <!--<xsl:value-of select="."/>--> 111*b1cdbd2cSJim Jagielski <!--<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>--> 112*b1cdbd2cSJim Jagielski <!--<br/>--> 113*b1cdbd2cSJim Jagielski </xsl:template> 114*b1cdbd2cSJim Jagielski</xsl:stylesheet> 115