You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2011/11/29 22:39:18 UTC
svn commit: r799485 [5/6] - in
/websites/staging/ooo-site/trunk/content/xml/xmerge: ./ docbook/
docbook/images/ docs/ downloads/ plugins/ plugins/images/
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/downloads/sofftodocbookheadings.xsl
==============================================================================
--- websites/staging/ooo-site/trunk/content/xml/xmerge/downloads/sofftodocbookheadings.xsl (added)
+++ websites/staging/ooo-site/trunk/content/xml/xmerge/downloads/sofftodocbookheadings.xsl Tue Nov 29 21:39:12 2011
@@ -0,0 +1,844 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!-- # The Contents of this file are made available subject to the terms of
+ # either of the following licenses
+ #
+ # - GNU Lesser General Public License Version 2.1
+ # - Sun Industry Standards Source License Version 1.1
+ #
+ # Sun Microsystems Inc., October, 2000
+ #
+ # GNU Lesser General Public License Version 2.1
+ # =============================================
+ # Copyright 2000 by Sun Microsystems, Inc.
+ # 901 San Antonio Road, Palo Alto, CA 94303, USA
+ #
+ # This library is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU Lesser General Public
+ # License version 2.1, as published by the Free Software Foundation.
+ #
+ # This library is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ # Lesser General Public License for more details.
+ #
+ # You should have received a copy of the GNU Lesser General Public
+ # License along with this library; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ # MA 02111-1307 USA
+ #
+ #
+ # Sun Industry Standards Source License Version 1.1
+ # =================================================
+ # The contents of this file are subject to the Sun Industry Standards
+ # Source License Version 1.1 (the "License"); You may not use this file
+ # except in compliance with the License. You may obtain a copy of the
+ # License at http://www.openoffice.org/license.html.
+ #
+ # Software provided under this License is provided on an "AS IS" basis,
+ # WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ # WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ # MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ # See the License for the specific provisions governing your rights and
+ # obligations concerning the Software.
+ #
+ # The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ #
+ # Copyright: 2000 by Sun Microsystems, Inc.
+ #
+ # All Rights Reserved.
+ #
+ # Contributor(s): _______________________________________
+ #
+ #-->
+<xsl:stylesheet version="1.0" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:office="http://openoffice.org/2000/office" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="http://openoffice.org/2000/meta" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" xmlns:config="http://openoffice.org/2001/config" office:class="text" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="office meta table number dc fo xlink chart math script xsl draw svg dr3d form
config text style">
+<xsl:output method="xml" indent="yes" omit-xml-declaration="no" />
+<!--<xsl:output method="xml" version="1.0" encoding="UTF-8" doctype-public="-//Sun Microsystems//DTD Simplified DocBook XML V1.0CR2-Based SupportDoc Subset
+V1.0//EN" doctype-system="file:///e:/temp/dtd/docbookx.dtd" />-->
+
+
+
+<xsl:key name='headchildren' match="text:p |table:table | text:span | text:ordered-list | office:annotation | text:unordered-list | text:footnote | text:a | text:list-item | draw:plugin | draw:text-box | text:footnote-body | text:section"
+ use="generate-id((..|preceding-sibling::text:h[@text:level='1']|preceding-sibling::text:h[@text:level='2']|preceding-sibling::text:h[@text:level='3']|preceding-sibling::text:h[@text:level='4']|preceding-sibling::text:h[@text:level='5'])[last()])"/>
+
+<xsl:key name="children" match="text:h[@text:level='2']"
+ use="generate-id(preceding-sibling::text:h[@text:level='1'][1])"/>
+
+<xsl:key name="children" match="text:h[@text:level='3']"
+ use="generate-id(preceding-sibling::text:h[@text:level='2' or @text:level='1'][1])"/>
+
+<xsl:key name="children" match="text:h[@text:level='4']"
+ use="generate-id(preceding-sibling::text:h[@text:level='3' or @text:level='2' or @text:level='1'][1])"/>
+
+<xsl:key name="children" match="text:h[@text:level='5']"
+ use="generate-id(preceding-sibling::text:h[@text:level='4' or @text:level='3' or @text:level='2' or @text:level='1'][1])"/>
+
+
+<xsl:template match="text:h[@text:level='1']">
+<xsl:choose>
+ <xsl:when test=".='Abstract'">
+ <abstract>
+ <xsl:apply-templates select="key('headchildren', generate-id())"/>
+ <xsl:apply-templates select="key('children', generate-id())"/>
+ </abstract>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="make-section">
+ <xsl:with-param name="current" select="@text:level"/>
+ <xsl:with-param name="prev" select="1"/>
+ </xsl:call-template>
+ <!--<sect1>
+ <title>
+ <xsl:apply-templates/>
+ </title>
+ <xsl:apply-templates select="key('headchildren', generate-id())"/>
+ <xsl:apply-templates select="key('children', generate-id())"/>
+ </sect1>-->
+ </xsl:otherwise>
+</xsl:choose>
+
+</xsl:template>
+
+<xsl:template match="text:h[@text:level='2'] | text:h[@text:level='3']| text:h[@text:level='4'] | text:h[@text:level='5']">
+<xsl:variable name="level" select="@text:level"></xsl:variable>
+<xsl:call-template name="make-section">
+ <xsl:with-param name="current" select="$level"/>
+ <xsl:with-param name="prev" select="preceding-sibling::text:h[@text:level < $level][1]/@text:level "/>
+</xsl:call-template>
+
+</xsl:template>
+
+<xsl:template name="make-section">
+ <xsl:param name="current"/>
+ <xsl:param name="prev"/>
+ <xsl:choose>
+ <xsl:when test="$current > $prev+1">
+ <xsl:text disable-output-escaping="yes"><sect</xsl:text><xsl:value-of select="$prev +1"/><xsl:text disable-output-escaping="yes">></xsl:text>
+ <title>
+ </title>
+ <xsl:call-template name="make-section">
+ <xsl:with-param name="current" select="$current"/>
+ <xsl:with-param name="prev" select="$prev +1"/>
+ </xsl:call-template>
+ <xsl:text disable-output-escaping="yes"></sect</xsl:text><xsl:value-of select="$prev +1 "/><xsl:text disable-output-escaping="yes">></xsl:text>
+ </xsl:when>
+
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes"><sect</xsl:text><xsl:value-of select="$current"/><xsl:text disable-output-escaping="yes">></xsl:text>
+ <title>
+ <xsl:apply-templates/>
+ </title>
+ <xsl:apply-templates select="key('headchildren', generate-id())"/>
+ <xsl:apply-templates select="key('children', generate-id())"/>
+ <xsl:text disable-output-escaping="yes"></sect</xsl:text><xsl:value-of select="$current"/><xsl:text disable-output-escaping="yes">></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
+<xsl:template match="text:p">
+ <para>
+ <xsl:apply-templates/>
+ </para>
+</xsl:template>
+
+
+
+<xsl:template match="/office:document">
+ <article>
+ <xsl:attribute name="lang"><xsl:value-of select="/office:document/office:meta/dc:language"/>
+ </xsl:attribute>
+ <xsl:apply-templates />
+ </article>
+</xsl:template>
+
+<xsl:template match="office:meta">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="text:ordered-list">
+ <orderedlist>
+ <xsl:apply-templates/>
+ </orderedlist>
+</xsl:template>
+
+
+
+<xsl:template match="meta:editing-cycles">
+</xsl:template>
+
+<xsl:template match="meta:user-defined">
+</xsl:template>
+
+<xsl:template match="meta:editing-duration">
+</xsl:template>
+
+<xsl:template match="dc:language">
+</xsl:template>
+
+<xsl:template match="dc:date">
+ <!--<pubdate>
+ <xsl:value-of select="substring-before(.,'T')"/>
+ </pubdate>-->
+</xsl:template>
+
+<xsl:template match="meta:creation-date">
+</xsl:template>
+
+<xsl:template match="office:body">
+<xsl:apply-templates select="key('headchildren', generate-id())"/>
+ <xsl:apply-templates select="text:h[@text:level='1']"/>
+ <!--<xsl:apply-templates/>-->
+</xsl:template>
+
+<xsl:template match="office:styles">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="office:script">
+</xsl:template>
+
+
+<xsl:template match="office:settings">
+</xsl:template>
+
+<xsl:template match="office:font-decls">
+</xsl:template>
+
+<xsl:template match="text:section">
+<xsl:choose>
+ <xsl:when test="@text:name='ArticleInfo'">
+ <articleinfo>
+ <title><xsl:value-of select="text:p[@text:style-name='Document Title']"/></title>
+ <subtitle><xsl:value-of select="text:p[@text:style-name='Document SubTitle']"/></subtitle>
+ <edition><xsl:value-of select="text:p/text:variable-set[@text:name='articleinfo.edition']"/></edition>
+ <xsl:for-each select="text:p/text:variable-set[substring-after(@text:name,'articleinfo.releaseinfo')]">
+ <releaseinfo>
+ <xsl:value-of select="."/>
+ </releaseinfo>
+ </xsl:for-each>
+ <xsl:call-template name="ArticleInfo"><xsl:with-param name="level" select="0"/></xsl:call-template>
+
+ </articleinfo>
+ </xsl:when>
+ <xsl:when test="@text:name='Abstract'">
+ <abstract>
+ <xsl:apply-templates/>
+ </abstract>
+ </xsl:when>
+ <xsl:when test="@text:name='Appendix'">
+ <appendix>
+ <xsl:apply-templates/>
+ </appendix>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="sectvar"><xsl:text>sect</xsl:text><xsl:value-of select="count(ancestor::text:section)+1"/></xsl:variable>
+ <xsl:variable name="idvar"><xsl:text> id="</xsl:text><xsl:value-of select="@text:name"/><xsl:text>"</xsl:text></xsl:variable>
+ <xsl:text disable-output-escaping="yes"><</xsl:text><xsl:value-of select="$sectvar"/><xsl:value-of select="$idvar"/><xsl:text disable-output-escaping="yes">></xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text disable-output-escaping="yes"></</xsl:text><xsl:value-of select="$sectvar"/><xsl:text disable-output-escaping="yes">></xsl:text>
+ </xsl:otherwise>
+
+
+</xsl:choose>
+</xsl:template>
+
+<xsl:template name="ArticleInfo">
+ <xsl:param name="level"/>
+ <xsl:variable name="author"><xsl:value-of select="concat('articleinfo.author_','', $level)"/></xsl:variable>
+ <xsl:if test="text:p/text:variable-set[contains(@text:name, $author )]">
+ <xsl:call-template name="Author"><xsl:with-param name="AuthorLevel" select="0"/></xsl:call-template>
+ <xsl:call-template name="Copyright"><xsl:with-param name="CopyrightLevel" select="0"/></xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="Copyright">
+ <xsl:param name="CopyrightLevel"/>
+
+ <xsl:variable name="Copyright"><xsl:value-of select="concat('articleinfo.copyright_','', $CopyrightLevel)"/></xsl:variable>
+
+ <xsl:if test="text:p/text:variable-set[contains(@text:name,$Copyright)]">
+ <copyright>
+ <xsl:call-template name="Year">
+ <xsl:with-param name="CopyrightLevel" select="$CopyrightLevel"/>
+ <xsl:with-param name="YearlLevel" select="0"/>
+ </xsl:call-template>
+ <xsl:call-template name="Holder">
+ <xsl:with-param name="CopyrightLevel" select="$CopyrightLevel"/>
+ <xsl:with-param name="HolderlLevel" select="0"/>
+
+ </xsl:call-template>
+ </copyright>
+ </xsl:if>
+</xsl:template>
+
+
+<xsl:template name="Year">
+ <xsl:param name="CopyrightLevel"/>
+ <xsl:param name="YearLevel"/>
+ <xsl:variable name="Copyright"><xsl:value-of select="concat('articleinfo.copyright_','', $CopyrightLevel)"/></xsl:variable>
+<xsl:variable name="Year"><xsl:value-of select="concat($Copyright,'',concat('.year_','',$YearLevel))"/></xsl:variable>
+
+ <xsl:if test="text:p/text:variable-set[@text:name=$Year]">
+ <orgname>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Year]"/>
+ </orgname>
+ </xsl:if>
+</xsl:template>
+
+
+<xsl:template name="Holder">
+ <xsl:param name="CopyrightLevel"/>
+ <xsl:param name="HolderLevel"/>
+ <xsl:variable name="Copyright"><xsl:value-of select="concat('articleinfo.copyright_','', $CopyrightLevel)"/></xsl:variable>
+<xsl:variable name="Holder"><xsl:value-of select="concat($Copyright,'',concat('.holder_','',$HolderLevel))"/></xsl:variable>
+
+ <xsl:if test="text:p/text:variable-set[@text:name=$Holder]">
+ <orgname>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Holder]"/>
+ </orgname>
+ </xsl:if>
+</xsl:template>
+
+
+
+<xsl:template name="Author">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+ <xsl:if test="text:p/text:variable-set[contains(@text:name, $Author )]">
+ <author>
+ <xsl:call-template name="Surname"><xsl:with-param name="AuthorLevel" select="$AuthorLevel"/><xsl:with-param name="SurnameLevel" select="0"/></xsl:call-template>
+ <xsl:call-template name="Firstname"><xsl:with-param name="AuthorLevel" select="$AuthorLevel"/><xsl:with-param name="FirstnameLevel" select="0"/></xsl:call-template>
+ <xsl:call-template name="Affiliation"><xsl:with-param name="AuthorLevel" select="$AuthorLevel"/><xsl:with-param name="AffilLevel" select="0"/></xsl:call-template>
+ </author>
+ <xsl:call-template name="Author"><xsl:with-param name="AuthorLevel" select="$AuthorLevel+1"/></xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+
+<xsl:template name="Surname">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:param name="SurnameLevel"/>
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+ <xsl:variable name="Surname"><xsl:value-of select="concat($Author,'',concat('.surname_','',$SurnameLevel))"/></xsl:variable>
+ <xsl:if test="text:p/text:variable-set[@text:name=$Surname]">
+ <surname>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Surname]"/>
+ </surname>
+ <xsl:call-template name="Surname"><xsl:with-param name="AuthorLevel" select="$AuthorLevel"/>
+ <xsl:with-param name="SurnameLevel" select="SurnameLevel+1"/>
+ </xsl:call-template>
+
+ </xsl:if>
+</xsl:template>
+
+
+
+
+<xsl:template name="Firstname">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:param name="FirstnameLevel"/>
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+ <xsl:variable name="Firstname"><xsl:value-of select="concat($Author,'',concat('.firstname_','',$FirstnameLevel))"/></xsl:variable>
+ <xsl:if test="text:p/text:variable-set[@text:name=$Firstname]">
+ <firstname>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Firstname]"/>
+ </firstname>
+ <xsl:call-template name="Surname">
+ <xsl:with-param name="AuthorLevel" select="$AuthorLevel"/>
+ <xsl:with-param name="FirstnameLevel" select="FirstnameLevel+1"/>
+ </xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+
+
+<xsl:template name="Affiliation">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:param name="AffilLevel"/>
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+ <xsl:variable name="Affil"><xsl:value-of select="concat($Author,'',concat('.affiliation_','',$AffilLevel))"/></xsl:variable>
+ <xsl:if test="text:p/text:variable-set[contains(@text:name,$Affil)]">
+ <affiliation>
+ <xsl:call-template name="Orgname">
+ <xsl:with-param name="AuthorLevel" select="$AuthorLevel"/>
+ <xsl:with-param name="AffilLevel" select="$AffilLevel"/><xsl:with-param name="OrgLevel" select="0"/>
+ </xsl:call-template>
+ <xsl:call-template name="Address">
+ <xsl:with-param name="AuthorLevel" select="$AuthorLevel"/>
+ <xsl:with-param name="AffilLevel" select="$AffilLevel"/><xsl:with-param name="AddressLevel" select="0"/>
+
+ </xsl:call-template>
+ </affiliation>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="Orgname">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:param name="AffilLevel"/>
+ <xsl:param name="OrgLevel"/>
+
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+<xsl:variable name="Affil"><xsl:value-of select="concat($Author,'',concat('.affiliation_','',$AffilLevel))"/></xsl:variable>
+ <xsl:variable name="Org"><xsl:value-of select="concat($Affil,'',concat('.orgname_','',$OrgLevel))"/></xsl:variable>
+
+ <xsl:if test="text:p/text:variable-set[@text:name=$Org]">
+ <orgname>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Org]"/>
+ </orgname>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="Address">
+ <xsl:param name="AuthorLevel"/>
+ <xsl:param name="AffilLevel"/>
+ <xsl:param name="AddressLevel"/>
+
+ <xsl:variable name="Author"><xsl:value-of select="concat('articleinfo.author_','', $AuthorLevel)"/></xsl:variable>
+<xsl:variable name="Affil"><xsl:value-of select="concat($Author,'',concat('.affiliation_','',$AffilLevel))"/></xsl:variable>
+ <xsl:variable name="Address"><xsl:value-of select="concat($Affil,'',concat('.address_','',$AddressLevel))"/></xsl:variable>
+
+ <xsl:if test="text:p/text:variable-set[@text:name=$Address]">
+ <address>
+ <xsl:value-of select="text:p/text:variable-set[@text:name=$Address]"/>
+ </address>
+ </xsl:if>
+</xsl:template>
+
+
+
+
+<xsl:template match="text:p[@text:style-name='Document Title']">
+</xsl:template>
+
+<xsl:template match="text:p[@text:style-name='Document SubTitle']">
+</xsl:template>
+
+
+<xsl:template match="text:p[@text:style-name='Section Title']">
+ <title>
+ <xsl:apply-templates/>
+ </title>
+</xsl:template>
+
+<xsl:template match="text:p[@text:style-name='Appendix Title']">
+ <title>
+ <xsl:apply-templates/>
+ </title>
+</xsl:template>
+
+
+<xsl:template match="text:p[@text:style-name='VarList Item']">
+ <xsl:if test="not(preceding-sibling::text:p[@text:style-name='VarList Item'])">
+ <xsl:text disable-output-escaping="yes"><listitem></xsl:text>
+ </xsl:if>
+ <para>
+ <xsl:apply-templates/>
+ </para>
+ <xsl:if test="not(following-sibling::text:p[@text:style-name='VarList Item'])">
+ <xsl:text disable-output-escaping="yes"></listitem></xsl:text>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template match="text:p[@text:style-name='VarList Term']">
+ <term>
+ <xsl:apply-templates/>
+ </term>
+</xsl:template>
+
+<xsl:template match="text:p[@text:style-name='Section1 Title']">
+ <title>
+ <xsl:apply-templates/>
+ </title>
+</xsl:template>
+
+
+<xsl:template match="text:p[@text:style-name='Section2 Title']">
+ <title>
+ <xsl:apply-templates/>
+ </title>
+</xsl:template>
+
+
+<xsl:template match="text:p[@text:style-name='Section3 Title']">
+ <title>
+ <xsl:apply-templates/>
+ </title>
+</xsl:template>
+
+<xsl:template match="text:footnote-citation">
+</xsl:template>
+
+<xsl:template match="text:p[@text:style-name='Mediaobject']">
+ <mediaobject>
+ <xsl:apply-templates/>
+ </mediaobject>
+</xsl:template>
+
+<xsl:template match="office:annotation/text:p">
+ <note>
+ <remark>
+ <xsl:apply-templates/>
+ </remark>
+ </note>
+</xsl:template>
+
+<!--<xsl:template match="meta:initial-creator">
+ <author>
+ <xsl:apply-templates />
+ </author>
+</xsl:template>-->
+
+<xsl:template match="table:table">
+ <xsl:choose>
+ <xsl:when test="following-sibling::text:p[@text:style-name='Table']">
+ <table frame="all">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@table:name"/>
+ </xsl:attribute>
+ <title>
+ <xsl:value-of select="following-sibling::text:p[@text:style-name='Table']"/>
+ </title>
+ <xsl:call-template name="generictable"/>
+ </table>
+ </xsl:when>
+ <xsl:otherwise>
+ <informaltable frame="all">
+ <xsl:call-template name="generictable"/>
+ </informaltable>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
+<xsl:template name="generictable">
+ <xsl:variable name="cells" select="count(descendant::table:table-cell)" ></xsl:variable>
+ <xsl:variable name="rows"><xsl:value-of select="count(descendant::table:table-row) "/></xsl:variable>
+ <xsl:variable name="cols"><xsl:value-of select="$cells div $rows"/></xsl:variable>
+ <xsl:variable name="numcols">
+ <xsl:choose>
+ <xsl:when test="child::table:table-column/@table:number-columns-repeated">
+ <xsl:value-of select="number(table:table-column/@table:number-columns-repeated+1)"/>
+ </xsl:when>
+ <xsl:otherwise >
+ <xsl:value-of select="$cols"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:element name="tgroup">
+ <xsl:attribute name="cols">
+ <xsl:value-of select="$numcols"/>
+ </xsl:attribute>
+ <xsl:call-template name="colspec"><xsl:with-param name="left" select="1" /></xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:element>
+</xsl:template>
+
+
+
+<xsl:template name="colspec">
+ <xsl:param name="left"/>
+ <xsl:if test="number($left < ( table:table-column/@table:number-columns-repeated +2) )">
+ <xsl:element name="colspec">
+ <xsl:attribute name="colnum"><xsl:value-of select="$left"/></xsl:attribute>
+ <xsl:attribute name="colname">c<xsl:value-of select="$left"/></xsl:attribute>
+ </xsl:element>
+ <xsl:call-template name="colspec"><xsl:with-param name="left" select="$left+1" /></xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+
+
+<xsl:template match="table:table-column">
+ <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="table:table-header-rows">
+ <thead>
+ <xsl:apply-templates/>
+ </thead>
+</xsl:template>
+
+<xsl:template match="table:table-header-rows/table:table-row">
+ <row>
+ <xsl:apply-templates />
+ </row>
+</xsl:template>
+
+<xsl:template match="table:table/table:table-row">
+ <xsl:if test="not(preceding-sibling::table:table-row)">
+ <xsl:text disable-output-escaping="yes"><tbody></xsl:text>
+ </xsl:if>
+ <row>
+ <xsl:apply-templates />
+ </row>
+ <xsl:if test="not(following-sibling::table:table-row)">
+ <xsl:text disable-output-escaping="yes"></tbody></xsl:text>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template match="table:table-cell">
+ <xsl:element name="entry">
+ <xsl:if test="@table:number-columns-spanned >'1'">
+ <xsl:attribute name="namest"><xsl:value-of select="concat('c',count(preceding-sibling::table:table-cell[not(@table:number-columns-spanned)]) +sum(preceding-sibling::table:table-cell/@table:number-columns-spanned)+1)"/></xsl:attribute>
+ <xsl:attribute name="nameend"><xsl:value-of select="concat('c',count(preceding-sibling::table:table-cell[not(@table:number-columns-spanned)]) +sum(preceding-sibling::table:table-cell/@table:number-columns-spanned)+ @table:number-columns-spanned)"/></xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates />
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="text:p">
+<xsl:choose>
+ <xsl:when test="@text:style-name='Table'">
+ </xsl:when>
+ <xsl:otherwise>
+ <para>
+ <xsl:apply-templates/>
+ </para>
+ </xsl:otherwise>
+</xsl:choose>
+</xsl:template>
+
+<xsl:template match="text:unordered-list">
+<xsl:choose>
+ <xsl:when test="@text:style-name='Var List'">
+ <variablelist>
+ <xsl:apply-templates/>
+ </variablelist>
+ </xsl:when>
+ <xsl:when test="@text:style-name='UnOrdered List'">
+ <variablelist>
+ <xsl:apply-templates/>
+ </variablelist>
+ </xsl:when>
+ <xsl:otherwise>
+ <itemizedlist>
+ <title></title>
+ <xsl:apply-templates/>
+ </itemizedlist>
+ </xsl:otherwise>
+</xsl:choose>
+</xsl:template>
+
+<xsl:template match="text:list-item">
+ <xsl:if test="parent::text:unordered-list/@text:style-name='Var List'">
+ <varlistentry>
+ <xsl:for-each select="text:p[@text:style-name='VarList Term']">
+ <xsl:apply-templates select="."/>
+ </xsl:for-each>
+ </varlistentry>
+ </xsl:if>
+ <xsl:if test="not(parent::text:unordered-list/@text:style-name='Var List')">
+ <listitem>
+ <xsl:apply-templates/>
+ </listitem>
+ </xsl:if>
+</xsl:template>
+
+
+
+
+
+<xsl:template match="dc:title">
+</xsl:template>
+
+<xsl:template match="dc:description">
+ <abstract><para>
+ <xsl:apply-templates/>
+ </para>
+ </abstract>
+</xsl:template>
+
+<xsl:template match="dc:subject">
+</xsl:template>
+
+
+<xsl:template match="meta:generator">
+</xsl:template>
+
+<xsl:template match="draw:plugin">
+<xsl:element name="audioobject">
+ <xsl:attribute name="fileref">
+ <xsl:value-of select="@xlink:href"/>
+ </xsl:attribute>
+ <xsl:attribute name="width">
+ </xsl:attribute>
+</xsl:element>
+</xsl:template>
+
+<xsl:template match="text:footnote">
+ <footnote>
+ <xsl:apply-templates/>
+ </footnote>
+</xsl:template>
+
+<xsl:template match="text:footnote-body">
+ <xsl:apply-templates/>
+</xsl:template>
+
+
+<xsl:template match="draw:text-box">
+</xsl:template>
+
+
+
+<xsl:template match="draw:image">
+<xsl:choose>
+ <xsl:when test="parent::text:p[@text:style-name='Mediaobject']">
+ <xsl:element name="imageobject">
+ <xsl:element name="imagedata">
+ <xsl:attribute name="fileref">
+ <xsl:value-of select="@xlink:href"/>
+ </xsl:attribute>
+ </xsl:element>
+ <xsl:element name="caption">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:element>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:element name="inlinegraphic">
+ <xsl:attribute name="fileref">
+ <xsl:value-of select="@xlink:href"/>
+ </xsl:attribute>
+ <xsl:attribute name="width"></xsl:attribute>
+ </xsl:element>
+ </xsl:otherwise>
+</xsl:choose>
+</xsl:template>
+
+
+
+
+
+<xsl:template match="text:span">
+<xsl:choose>
+<xsl:when test="./@text:style-name='GuiMenu'">
+ <xsl:element name="guimenu">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="./@text:style-name='GuiSubMenu'">
+ <xsl:element name="guisubmenu">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='GuiMenuItem'">
+ <xsl:element name="guimenuitem">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='GuiButton'">
+ <xsl:element name="guibutton">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='GuiButton'">
+ <xsl:element name="guibutton">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='GuiLabel'">
+ <xsl:element name="guilabel">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='Emphasis'">
+ <xsl:element name="emphasis">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='FileName'">
+ <xsl:element name="filename">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='Application'">
+ <xsl:element name="application">
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='Command'">
+ <command>
+ <xsl:apply-templates/>
+ </command>
+ </xsl:when>
+ <xsl:when test="@text:style-name='SubScript'">
+ <subscript>
+ <xsl:apply-templates/>
+ </subscript>
+ </xsl:when>
+ <xsl:when test="@text:style-name='SuperScript'">
+ <superscript>
+ <xsl:apply-templates/>
+ </superscript>
+ </xsl:when>
+ <xsl:when test="@text:style-name='SystemItem'">
+ <systemitem>
+ <xsl:apply-templates/>
+ </systemitem>
+ </xsl:when>
+ <xsl:when test="@text:style-name='ComputerOutput'">
+ <computeroutput>
+ <xsl:apply-templates/>
+ </computeroutput>
+ </xsl:when>
+ <xsl:when test="@text:style-name='Highlight'">
+ <highlight>
+ <xsl:apply-templates/>
+ </highlight>
+ </xsl:when>
+ <xsl:when test="@text:style-name='KeyCap'">
+ <keycap>
+ <xsl:apply-templates/>
+ </keycap>
+ </xsl:when>
+ <xsl:when test="@text:style-name='KeySym'">
+ <xsl:element name="keysym">
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="@text:style-name='KeyCombo'">
+ <keycombo>
+ <xsl:apply-templates/>
+ </keycombo>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+</xsl:choose>
+
+</xsl:template>
+
+
+<xsl:template match="text:a">
+ <xsl:choose>
+ <xsl:when test="contains(@xlink:href,'://')">
+ <xsl:element name="ulink">
+ <xsl:attribute name="url">
+ <xsl:value-of select="@xlink:href"/>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="not(contains(@xlink:href,'#'))">
+ <xsl:element name="olink">
+ <xsl:attribute name="targetdocent">
+ <xsl:value-of select="@xlink:href"/>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="linkvar" select="substring-after(@xlink:href,'#')"/>
+ <xsl:element name="link">
+ <xsl:attribute name="linkend">
+ <xsl:value-of select="substring-before($linkvar,'%')"/>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
+</xsl:stylesheet>
\ No newline at end of file
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/downloads/xmergesync.zip
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/downloads/xmergesync.zip
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/index.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/xml/xmerge/index.html (added)
+++ websites/staging/ooo-site/trunk/content/xml/xmerge/index.html Tue Nov 29 21:39:12 2011
@@ -0,0 +1,419 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+
+ <title>Document Editing on Small Devices - XMerge</title>
+
+<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
+
+
+</head>
+
+<body>
+ <div id="banner">
+ <div id="bannerleft"><a alt="Apache OpenOffice.org (incubating)" href="/">
+ <img id="ooo-logo alt="Apache OpenOffice.org (Incubating)" src="/images/ooo-logo.png"/></a></div>
+ <div id="bannerright"><a alt="Apache Incubator" href="http://incubator.apache.org">
+ <img id="asf-logo" alt="Apache Incubator" src="/images/apache-incubator-logo.png"/></a></div>
+ <div id="bannercenter"><br/>(incubating) | The Free and Open Productivity Suite</div>
+ </div>
+ <div id="clear"></div>
+
+ <div id="content">
+
+
+
+<h1>Document Editing on Small Devices - XMerge</h1>
+<!-- no current top news!
+<h2><strong>Top News</strong>: <a href="xml_specification_draft.pdf">XML File Format Specification Updated</a></h2>
+-->
+<a href="background.html" class="ProjectName">Background</a> | <a
+ href="index.html#overview" class="ProjectName">Overview</a> | <a
+ href="index.html#status" class="ProjectName">News and Updates</a> | <a
+ href="index.html#future" class="ProjectName">Proposed Future Projects</a>
+| <a href="index.html#plugin-ins" class="ProjectName">Plugins</a> | <a
+ href="index.html#doc" class="ProjectName">Documentation and Resources</a>
+| <a href="index.html#build" class="ProjectName">Building XMerge</a>
+<p align="justify"><strong>Project Owner:</strong> <a
+ href="mailto:Svante.Schubert [AT].sun.com">Svante Schubert</a><br>
+<small>(Please use the provided <a
+ href="http://xml.openoffice.org/servlets/ProjectMailingListList">mailing
+lists</a> for discussion of the XML based file format and related
+issues.)</small> </p>
+<a name="overview"></a>
+<br>
+<h2>Overview</h2>
+<p> </p>
+<p>The goals of the Document Editing on Small Devices project is to:<br>
+</p>
+<ul>
+ <li>Allow for the editing of rich format documents on small devices,
+using 3rd party applications native to the device to do the editing.</li>
+ <li>Support the most widely used small devices, namely:</li>
+ <ul>
+ <li>Palm</li>
+ <li>PocketPC</li>
+ </ul>
+ <li>Provide the ability to merge edits made in the small device's
+lossy format back into the original richer format document maintaining
+it's original style.</li>
+ <li>Take advantage of the open and well defined OpenOffice.org XML
+document format.</li>
+ <li>Provide a framework with the ability to have plugin-able Convert,
+Diff and Merge implementations. It should be possible determine a
+converter's capabilities at run-time.</li>
+</ul>
+<p> </p>
+<p> The XMerge SDK provides a Java-based framework for converting
+documents between different formats using conversion plugins to read
+and write each format. More about what plugins are available can be
+found in the <a href="#plug-ins">plugin section</a> below.</p>
+<p>In addition to format conversion, the XMerge SDK provides a
+framework for merging changes in one document format (usually a simpler
+or lower quality format) into an original document (typically in a
+richer format). The benefit of merging is that richer styles or
+content in the original document are retained, while the edits made to
+the simpler format can be applied or merged into the original document.<br>
+</p>
+<p> To meet these goals there are two significant interfaces in XMerge:</p>
+<ul>
+ <li>the Conversion API's, used by applications to use a supported
+format conversion</li>
+ <li>the Plugin SPI, which is used by developers who want to add
+conversion support for a new document format.</li>
+</ul>
+All plugins are designed to support the OpenOffice.org
+XML file format on one side and the device format on the other, the
+framework is able to support "chaining" of conversions, also known as
+an "Any-to-Any" conversion, eg. convert from a Palm document to a
+PocketPC document through the intermediate OpenOffice.org XML file
+format.<br>
+<p> </p>
+<a name="status"></a>
+<h2>News and updates</h2>
+<ul>
+ <li><b>Mobile Device Support in OpenOffice</b><br>
+The Mobile Device Support Pack for OpenOffice 1.0 is now available.
+Grab it <a href="downloads/index.html">here</a><br>
+This mini-install integrates XMerge plugins into OpenOffice using the
+upcoming
+XmlFilterAdapter. Try it out and let us know how it goes. </li>
+ <li><b>ActiveSync and OpenOffice</b><br>
+ActiveSync Support has been added. You can now sync OpenOffice
+Writer and Calc documents to and from a Pocket PC device. ActiveSync
+will
+automatically invoke XMerge plugins to perform the appropriate
+conversions.
+ You can get the filter from the <a href="downloads/index.html">downloads
+section</a>. </li>
+ <li><b>Nokia Communication Word Processor Format Support</b><br>
+Nick Richards has taken on the writing of a plugin for the PsiWord
+format.
+PsiWord is the format used by the word processor on the <a
+ href="http://www.nokia.com/phones/9210/">Nokia 9210 Communicator</a>,
+the Symbian based PDA/phone and other PDA's running the EPOC OS. <br>
+Nick is looking for others to help in writing the plugin, so if you can
+spare the time he can be reached at <a
+ href="mailto:nedrichards@openoffice.org">nedrichards@openoffice.org</a>
+ </li>
+ <li><b>Writer2LaTeX XMerge Plugin</b><br>
+ <a>Henrik Just has now implemented his </a><a
+ href="http://www.hj-gym.dk/%7Ehj/writer2latex/">Writer2LaTeX </a>converter
+as an XMerge plugin. This means that now his converter can now be used
+as an OpenOffice.org export filter as well as being able to perform
+standalone command line conversions. For more information and the
+latest versions, visit <a
+ href="http://www.hj-gym.dk/%7Ehj/writer2latex/">Henrik's web-page.</a></li>
+</ul>
+<a name="future"></a><br>
+<h2>Proposed future projects</h2>
+<ul>
+ <li>Synchronisation support for devices, could be any of the
+following:</li>
+ <ul>
+ <li>Application on small device that pulls down a document in
+desired format and synchronises back.</li>
+ <li>Desktop synchronisation integration (eg. HotSync).<em></em></li>
+ </ul>
+ <li>New plugins for other small document formats.</li>
+ <li>Enhancements to existing plugins</li>
+ <li>Alternate implementations to the diff and merge engines</li>
+ <li>Support for OpenOffice.org presentations.</li>
+ <li>Provision of a parser independent "XMLWriter". This would in
+theory allow XMerge to work with any XML parser with DOM level
+2 support.</li>
+</ul>
+<a name="plug-ins"></a>
+<h2>Plugins</h2>
+<table cellpadding="4" cellspacing="1" bgcolor="#f0f0f0" width="100%">
+ <tbody>
+ <tr align="center">
+ <th bgcolor="#99ccff" width="20%"><font color="#00315a"
+ face="Arial, Helvetica" size="2"><b> Platform</b></font></th>
+ <th bgcolor="#99ccff" width="20%"><font color="#00315a"
+ face="Arial, Helvetica" size="2"><b> Plug-in Name</b></font></th>
+ <th bgcolor="#99ccff"><font color="#00315a"
+ face="Arial, Helvetica" size="2"><b> Description</b></font></th>
+ <td valign="top" bgcolor="#99ccff">Current Status<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">Any<br>
+ </td>
+ <td valign="top" width="20%">XSLT<br>
+ <code></code></td>
+ <td valign="top">The XSLT plug-in, makes use of the <a
+ href="http://xml.apache.org/xalan-j/index.html">Xalan XSLT</a>
+processor, in order to translate an xml document to and from a
+specified xml/xhtml format.<br>
+ </td>
+ <td valign="top">Source Available<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">Palm<br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top" width="20%"><a
+ href="plugins/aportisdoc.html">AportisDoc</a><br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top">Plugin for editing StarWriter
+documents in the AportisDoc format originally developed by Aportis
+Technology Corporation. However Aportis as of 31st Dec 2002 were
+acquired by <a href="http://www.ultrasoft.com/BrainForest/">UltraSoft</a>.
+There are still<a
+ href="http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=aportisdoc+format+palm&spell=1">
+many palm applications</a> that use the Aportisdoc format. This plugin
+supports merging of textual changes. </td>
+ <td valign="top" bgcolor="#f0f0f0">Source Available<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">Palm<br>
+ </td>
+ <td valign="top" bgcolor="#f0f0f0"><a href="plugins/minicalc.html">MiniCalc</a><br>
+ </td>
+ <td valign="top" bgcolor="#f0f0f0">Sample implementation for
+editing StarCalc spreadsheets with <a
+ href="http://www.solutionsinhand.com">MiniCalc</a> on the Palm. This
+plugin
+supports merging of textual changes.<br>
+ </td>
+ <td valign="top" bgcolor="#f0f0f0">Source Available<br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">PocketPC<br>
+ </td>
+ <td valign="top"><a href="plugins/pocketword.html">Pocket
+Word</a><br>
+ </td>
+ <td valign="top">Support of editing text documents through
+PocketWord<br>
+ </td>
+ <td valign="top">Source Available</td>
+ </tr>
+ <tr>
+ <td valign="top">PocketPC<br>
+ </td>
+ <td valign="top"><a href="plugins/pocketexcel.html">Pocket
+Excel</a><br>
+ </td>
+ <td valign="top">Support for editing spreadsheets in PocketExcel<br>
+ </td>
+ <td valign="top">Source Available<br>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<i>*Follow links for more information and screen-shots.</i> <a
+ name="doc"></a>
+<h2>Documentation and Resources</h2>
+<table cellpadding="4" cellspacing="1" bgcolor="#ffffff" width="100%">
+ <tbody>
+ <tr>
+ <td colspan="3" bgcolor="#00315a" align="center"><font
+ color="#ffffff" face="arial, helvetica" size="2"><b> Documentation for
+the XMerge SDK</b></font></td>
+ </tr>
+ <tr>
+ <th bgcolor="#99ccff" align="center"><font color="#00315a"
+ face="arial, helvetica" size="2"><b> Document</b></font></th>
+ <th bgcolor="#99ccff" align="center"><font color="#00315a"
+ face="arial, helvetica" size="2"><b> Summary</b></font></th>
+ <th bgcolor="#99ccff" align="center"><font color="#00315a"
+ face="arial, helvetica" size="2"><b> Format and Size</b></font></th>
+ </tr>
+ <tr>
+ <td bgcolor="#f0f0f0" valign="top"><a href="docs/XMerge_sdk.pdf">XMerge
+Document Conversion SDK</a> <br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top">A developer's guide for the
+XMerge SDK. Describes how to use the client API, implement plugins,
+testing and installing plug-ins.<br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top"> PDF, 180K<br>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#f0f0f0" valign="top"><a href="docs/XSLTPlugin.pdf">XSLT
+Plugin Implementation</a><br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top">Describes the XSLT converter
+plugin, how to use it and also how to implement further XSLT plugins.<br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top"> PDF, 11K<br>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="#f0f0f0" valign="top"><a
+ href="docs/xmerge_javadoc.zip"> XMerge JavaDocs</a> <br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top"> Generated from JavaDoc
+comments in the sources.<br>
+ </td>
+ <td bgcolor="#f0f0f0" valign="top"> ZIP, 364K<br>
+ </td>
+ </tr>
+<!--
+<tr>
+<td bgcolor="#f0f0f0" valign="top"><a href="...">...</a></td>
+<td bgcolor="#f0f0f0" valign="top">...</td>
+<td bgcolor="#f0f0f0" valign="top">...</td>
+</tr>
+-->
+ </tbody>
+</table>
+<!--<p><br>
+ </p>
+
+<p><br>
+ </p>
+ <a name="build"></a>-->
+<a name="build"></a><br>
+<h2>Building XMerge</h2>
+<p> The following document describes the process for building the
+OpenOffice.org XMerge project, either standalone or as part of the
+OpenOffice.org build environment. </p>
+<h3>Requirements</h3>
+The following tools are necessary in order to build the XMerge project.<br>
+<ul>
+ <li><a href="http://java.sun.com/j2se/1.3/" target="_blank"> Java 1.3
+or 1.4</a> </li>
+ <li><a href="http://java.sun.com/xml/archive.html" target="_blank">JAXP
+1.0</a> or <a href="http://xml.apache.org/xerces-j/index.html"
+ target="_blank"> Xerces-J</a> </li>
+ <li><a href="http://jakarta.apache.org/ant/index.html" target="_blank">Ant</a>
+ </li>
+ <li><a href="http://xml.apache.org/xalan-j/index.html" target="_blank">Xalan-J
+2.2</a> </li>
+</ul>
+<p><b>Note:</b> Java 1.4 includes the Crimson XML parser and Xalan. If
+using
+Java 1.4 the only requirement is Ant.</p>
+<p><b>N.B.</b> Xalan 2.3 splits the XSLT classes between two JAR files.
+The build environment expects the XSLT classes to be contained in <code>xalan.jar</code>
+only.</p>
+<h3>Obtaining the source</h3>
+The source for XMerge is maintained under CVS control as part of the
+XML project. <br>
+<br>
+See the XML Project's <a
+ href="http://xml.openoffice.org/servlets/ProjectSource" target="_blank">
+Source page</a> for information on obtaining and contributing to source
+code.<br>
+<br>
+If using CVS, setup your CVS access according to the
+Source page and checkout the <tt>xmerge</tt> module.<br>
+<pre> <tt>% cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co oo/xml/xmerge</tt></pre>
+<br>
+The source can also be downloaded as a ZIP file <a
+ href="xmerge_src.zip"> here.</a><br>
+<h3>Building in a Standalone Environment<br>
+</h3>
+<p> To build XMerge in a standalone environment, copy all of the jar
+files mentioned above and the Xalan-J archive into a directory.</p>
+<p>You will need to include the Ant binary directory in your PATH.
+ Ant requires that the JAVA_HOME variable also be set.<br>
+</p>
+<p> Wrapper scripts have been provided to execute the build. On
+a UNIX based system use:</p>
+<pre> <tt>% build_xmerge -jars <jar_location> </tt><tt>[-debug | optimize]</tt></pre>
+<p>and on Windows use :<br>
+</p>
+<pre> <tt>C:\XMerge> build_xmerge.bat -jars <jar_location></tt><tt> [-debug | -optimize]</tt></pre>
+<p>where <jar_location> is the directory containing the required
+JAR files.</p>
+<p><b>Note:</b> If using Java 1.4 the jar file location can be given as
+any
+directory as Java 1.4 includes the XML and XSLT class files.</p>
+<p>The scripts also support building a debug version and an optimized
+version. Simply specify <tt>-debug</tt> or <tt>-optimize</tt>
+as options. These options are mutually exclusive. If both
+are set, the first one encountered will be used for build purposes.</p>
+<br>
+<h3>Building as part of OpenOffice.org</h3>
+<p> Setup your OpenOffice.org build environment as detailed in the <a
+ href="http://www.openoffice.org/documentation.html#guides">OpenOffice.org
+build documents</a>.<br>
+</p>
+<p> To build XMerge, you will also need to copy the Ant and Xalan-J Jar
+files into your solver's bin directory, e.g.
+${SOLARVER}/642/{platform}/bin.<br>
+</p>
+<p> Once these files are present simply execute the build:<br>
+</p>
+<pre> <tt>% build</tt></pre>
+<p>The build will execute and JAR files and documentation will be
+contained in a platform-named directory created in the <i>xmerge</i>
+directory.<br>
+</p>
+<h3>Running the Test Driver command-line utility<br>
+</h3>
+<p>Once the sources have been built, you can test the plugins using the
+test Driver command-line utility. <br>
+<br>
+To this you will need to know the location of all the JAR files that
+were built, this will vary depending on the mechanism used to build.
+You
+will also need the location of the JAR files that you downloaded as
+stated
+in the Requirements section above. <br>
+</p>
+<p>Once you have all of this, you execute the test Driver as
+follows:<br>
+</p>
+<pre> % java -cp <jar_location> org.openoffice.xmerge.test.Driver -from <mime-type> -to <mime-type> [-merge <original file>] <file>... <br></pre>
+<p>The from and to mime-types to use will depend on the type of
+documents being converted. The "-merge" option is only usable when
+converting from the device format to the OpenOffice.org document.<br>
+</p>
+<br>
+
+
+ </div>
+
+ <div id="footera">
+ <div id="poweredbya">
+ <p><img src="/images/feather-small.gif"/><br/>Powered by the Apache CMS.</p>
+ </div>
+ <div id="copyrighta">
+ <p>
+ Apache "OpenOffice.org" is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
+ Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and
+ decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is
+ not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has
+ yet to be fully endorsed by the ASF.</p>
+ <p>
+ <a href="/contact.html">Contact Us</a> |
+ <a href="/terms.html">Terms of Use</a>
+ <br />Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+ <br />OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation.
+ <br />Other names appearing on the site may be trademarks of their respective owners.
+ </p>
+ </div>
+ </div>
+
+</body>
+</html>
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/aportisdoc.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/aportisdoc.html (added)
+++ websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/aportisdoc.html Tue Nov 29 21:39:12 2011
@@ -0,0 +1,228 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+
+
+ <meta http-equiv="content-type"
+ content="text/html; charset=ISO-8859-1">
+ <title>xml.openoffice.org</title>
+
+
+</head>
+
+<body>
+ <div id="banner">
+ <div id="bannerleft"><a alt="Apache OpenOffice.org (incubating)" href="/">
+ <img id="ooo-logo alt="Apache OpenOffice.org (Incubating)" src="/images/ooo-logo.png"/></a></div>
+ <div id="bannerright"><a alt="Apache Incubator" href="http://incubator.apache.org">
+ <img id="asf-logo" alt="Apache Incubator" src="/images/apache-incubator-logo.png"/></a></div>
+ <div id="bannercenter"><br/>(incubating) | The Free and Open Productivity Suite</div>
+ </div>
+ <div id="clear"></div>
+
+ <div id="content">
+
+
+
+
+<h1>XMerge AportisDoc Plugin</h1>
+ <br>
+
+<h2><font color="#cc0000">Overview</font></h2>
+ <br>
+ The AportisDoc plugin converts text data between OpenOffice Writer
+ format and AportisDoc's binary Palm DataBase file format. <br>
+<br>
+The AportisDoc format is a plain-text format and does not support any formatting
+options.<br>
+ <br>
+<table cellpadding="4" cellspacing="1" bgcolor="#f0f0f0" width="50%">
+ <tbody>
+ <tr align="center">
+ <th bgcolor="#00315a"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Category</b></font></th>
+ <th bgcolor="#00315a"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Feature</b></font></th>
+ <th bgcolor="#00315a" width="20%"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Supported</b></font></th>
+ </tr>
+ <tr>
+ <td valign="top" bgcolor="#99ccff" align="center"> <font
+ color="#00315a" face="Arial, Helvetica" size="2"><b>Document Elements</b></font><br>
+ </td>
+ <td valign="top" bgcolor="#99ccff"><br>
+ </td>
+ <td width="20%" valign="top" bgcolor="#99ccff"><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Paragraphs<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">yes<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Styles<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Tables<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Lists<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Images</font><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">no</font><br>
+ </td>
+ </tr>
+
+ </tbody>
+</table>
+<br>
+
+<h2><font color="#cc0000">Using the AportisDoc plugin</font></h2>
+ <br>
+ The AportisDoc plugin is invoked in the same manner as all other
+XMerge plugins. Once the framework has been made aware of the
+plugin, the only thing needed to use it is to specify its MIME type
+as a source or destination type for conversion. The MIME type is
+specified in the <code>converter.xml</code> file included in the <code>aportisdoc.jar</code>
+ file. Currently, this is set to <code>application/x-aportisdoc</code>
+ .<br>
+ <br>
+ For example, to use the AportisDoc plugin in conjunction with the
+ test driver supplied with the XMerge framework:<br>
+ <br>
+
+<blockquote>
+ <pre>% java org.openoffice.xmerge.test.Driver -from staroffice/sxw -to application/x-aportisdoc Test.sxw<br><br>% java.org.openoffice.xmerge.test.Driver -from application/x-aportisdoc -to staroffice/sxw Test.pdb<br></pre>
+ </blockquote>
+ <br>
+
+<h2><font color="#cc0000">Features</font></h2>
+ The plugin currently supports conversion to plain-text only, as
+this is what AportisDoc supports.<br>
+ <br>
+ <br>
+ <img src="images/origdoc.jpg" alt="StarWriter Document image"
+ width="817" height="592" border="1">
+ <br>
+
+
+
+
+ <i>Original
+ StarWriter Document </i><br>
+ <br>
+ Converts to<br>
+ <br>
+ <img
+ src="images/pdborig.jpg" alt="pdborig" width="269" height="409"
+ border="1">
+
+
+ <img src="images/pdbmod.jpg" alt="pdbmod"
+ width="269" height="409" border="1">
+ <br>
+
+ <i>
+ Converted Document
+
+
+
+ Converted
+ Document with Edits</i><br>
+ <br>
+
+<h2><font color="#cc0000">Merging </font></h2>
+ When changes have been made on the small device, the user
+can either choose to convert the modified AportisDoc Palm Database to a
+reduced content and style StarWriter file, or the user can choose to merge
+the content changes made with the original StarWriter Document. In this
+way, new edits can be retained whilst also retaining document styles and
+formatting . To merge the modified AportisDoc DataBase, the XMerge test
+driver program may be used again.<br>
+ <br>
+
+<div align="center">
+<pre>% java.org.openoffice.xmerge.test.Driver -from application/x-aportisdoc -to staroffice/sxw -merge Test.sxw Test.pdb</pre>
+ </div>
+ <br>
+ <br>
+ <br>
+ <img src="images/moddoc.jpg" alt="StarWriter Document modified"
+ width="822" height="565" border="1">
+ <br>
+
+<div align="left">
+<blockquote>
+
+
+ <i> Original StarWriter Document with Merged Edits</i><br>
+ </blockquote>
+ </div>
+
+<h2><font color="#cc0000">Building the plugin</font></h2>
+ The AportisDoc plugin is built as part of the XMerge framework. Its
+ classes are stored in <code>aportisdoc.jar</code>. See <a
+ href="http://xml.openoffice.org/xmerge/index.html#build"> Building XMerge</a>
+ for more instructions.<br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+
+
+ </div>
+
+ <div id="footera">
+ <div id="poweredbya">
+ <p><img src="/images/feather-small.gif"/><br/>Powered by the Apache CMS.</p>
+ </div>
+ <div id="copyrighta">
+ <p>
+ Apache "OpenOffice.org" is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
+ Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and
+ decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is
+ not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has
+ yet to be fully endorsed by the ASF.</p>
+ <p>
+ <a href="/contact.html">Contact Us</a> |
+ <a href="/terms.html">Terms of Use</a>
+ <br />Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+ <br />OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation.
+ <br />Other names appearing on the site may be trademarks of their respective owners.
+ </p>
+ </div>
+ </div>
+
+</body>
+</html>
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-ppc2002.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-ppc2002.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-ppc2k.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-ppc2k.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-sxw.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/conversion-sxw.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/formula_pxl.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/formula_pxl.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/formula_sxc.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/formula_sxc.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/moddoc.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/moddoc.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/moddoc.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdbmod.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdbmod.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdbmod.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdborig.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdborig.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/mpdborig.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/origdoc.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/origdoc.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/origdoc.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdbmod.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdbmod.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdbmod.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdborig.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdborig.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/pdborig.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetmod.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetmod.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetmod.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetorig.jpg
==============================================================================
Binary file - no diff available.
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetorig.jpg
------------------------------------------------------------------------------
svn:executable = *
Propchange: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/images/spreadsheetorig.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/minicalc.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/minicalc.html (added)
+++ websites/staging/ooo-site/trunk/content/xml/xmerge/plugins/minicalc.html Tue Nov 29 21:39:12 2011
@@ -0,0 +1,257 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+
+
+ <meta http-equiv="content-type"
+ content="text/html; charset=ISO-8859-1">
+ <title>xml.openoffice.org</title>
+
+
+
+</head>
+
+<body>
+ <div id="banner">
+ <div id="bannerleft"><a alt="Apache OpenOffice.org (incubating)" href="/">
+ <img id="ooo-logo alt="Apache OpenOffice.org (Incubating)" src="/images/ooo-logo.png"/></a></div>
+ <div id="bannerright"><a alt="Apache Incubator" href="http://incubator.apache.org">
+ <img id="asf-logo" alt="Apache Incubator" src="/images/apache-incubator-logo.png"/></a></div>
+ <div id="bannercenter"><br/>(incubating) | The Free and Open Productivity Suite</div>
+ </div>
+ <div id="clear"></div>
+
+ <div id="content">
+
+
+
+
+<h1>XMerge MiniCalc Plugin</h1>
+ <br>
+
+<h2><font color="#cc0000">Overview</font></h2>
+ <br>
+ The MiniCalc plugin converts text data between OpenOffice Calc
+ format and MiniCalc's binary Palm DataBase file format. <br>
+ <br>
+<table cellpadding="4" cellspacing="1" bgcolor="#f0f0f0" width="50%">
+ <tbody>
+ <tr align="center">
+ <th bgcolor="#00315a"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Category</b></font></th>
+ <th bgcolor="#00315a"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Feature</b></font></th>
+ <th bgcolor="#00315a" width="20%"><font color="#ffffff"
+ face="Arial, Helvetica" size="2"><b>Supported</b></font></th>
+ </tr>
+ <tr>
+ <td valign="top" bgcolor="#99ccff" align="center"><font
+ color="#00315a" face="Arial, Helvetica" size="2"><b>Formula</b></font>
+ </td>
+ <td valign="top" bgcolor="#99ccff"><br>
+ </td>
+ <td width="20%" valign="top" bgcolor="#99ccff"><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Cell References<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">yes<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Add/Sub/Multiply/Divide<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">yes<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Integers +
+Floating Points<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">yes<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Functions<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">yes<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top" bgcolor="#99ccff" align="center"><font
+ color="#00315a" face="Arial, Helvetica" size="2"><b>Formatting</b></font>
+ </td>
+ <td valign="top" bgcolor="#99ccff"><br>
+ </td>
+ <td width="20%" valign="top" bgcolor="#99ccff"><br>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Font<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Bold, Italic,
+Underline</font></td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Colour<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+ <tr>
+ <td valign="top"><br>
+ </td>
+ <td valign="top"><font face="Arial, Helvetica" size="2">Alignment<br>
+ </font> </td>
+ <td width="20%" valign="top"><font face="Arial, Helvetica"
+ size="2">no<br>
+ </font> </td>
+ </tr>
+
+ </tbody>
+</table>
+
+<h2><font color="#cc0000">Using the MiniCalc plugin</font></h2>
+ <br>
+ The MiniCalc plugin is invoked in the same manner as all other XMerge
+ plugins. Once the framework has been made aware of the plugin, the
+ only thing needed to use it is to specify its MIME type as a source or
+destination type for conversion. The MIME type is specified in the
+<code>converter.xml</code> file included in the minicalc<code>.jar</code>
+ file. Currently, this is set to <code>application/x-minicalc</code>
+ .<br>
+ <br>
+ For example, to use the MiniCalc plugin in conjunction with the
+test driver supplied with the XMerge framework:<br>
+ <br>
+
+<blockquote>
+ <pre>% java org.openoffice.xmerge.test.Driver -from staroffice/sxc -to application/x-minicalc Test.sxc<br><br>% java.org.openoffice.xmerge.test.Driver -from application/x-minicalc -to staroffice/sxc Test.pdb<br></pre>
+ </blockquote>
+ <br>
+
+<h2><font color="#cc0000">Features</font></h2>
+This converter supports basic spreadsheet functionality. It does not support
+embedded graphics or styles, as these are not supported by MiniCalc.<br>
+ <br>
+ <br>
+ <img src="images/spreadsheetorig.jpg" alt="StarCalc SpreadSheet Orig"
+ width="925" height="562" border="1"> <br>
+
+
+
+
+ <i>Original
+StarCalc Document </i><br>
+ <br>
+ Converts to<br>
+ <br>
+ <img
+ src="images/mpdborig.jpg" alt="PDBOrig" width="271" height="410"
+ border="1">
+
+ <img src="images/mpdbmod.jpg" alt="PDB mod"
+ width="271" height="410" border="1"> <br>
+
+ <i>
+Converted Document
+
+
+
+ Converted
+Document with Edits</i><br>
+ <br>
+
+<h2><font color="#cc0000">Merging </font></h2>
+ When changes have been made on the small device, the user can
+either choose to convert the modified MiniCalc Palm Database to a reduced
+content and style StarCalc file, or the user can choose to merge the content
+changes made with the original StarCalc Document. In this way, new edits
+can be retained whilst also retaining document styles and formatting . To
+merge the modified MiniCalc DataBase, the XMerge test driver program may be
+used again.<br>
+ <br>
+
+<div align="center">
+<pre>% java.org.openoffice.xmerge.test.Driver -from application/x-minicalc -to staroffice/sxc -merge Test.sxc Test.pdb</pre>
+ </div>
+ <br>
+ <br>
+ <br>
+ <img src="images/spreadsheetmod.jpg" alt="StarCalc SpreadSheet Mod"
+ width="923" height="566" border="1"> <br>
+
+<div align="left">
+<blockquote>
+
+
+ <i> Original StarCalc Document with Merged Edits</i><br>
+ </blockquote>
+ </div>
+
+<h2><font color="#cc0000">Building the plugin</font></h2>
+ The MiniCalc plugin is not currently built as part of the XMerge framework.
+<br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+ <br>
+
+
+ </div>
+
+ <div id="footera">
+ <div id="poweredbya">
+ <p><img src="/images/feather-small.gif"/><br/>Powered by the Apache CMS.</p>
+ </div>
+ <div id="copyrighta">
+ <p>
+ Apache "OpenOffice.org" is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
+ Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and
+ decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is
+ not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has
+ yet to be fully endorsed by the ASF.</p>
+ <p>
+ <a href="/contact.html">Contact Us</a> |
+ <a href="/terms.html">Terms of Use</a>
+ <br />Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+ <br />OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation.
+ <br />Other names appearing on the site may be trademarks of their respective owners.
+ </p>
+ </div>
+ </div>
+
+</body>
+</html>