Hi Woods Yan,
do you have an example what the <presentation:date-time/> is before and
after you import and export it?
Michael
On 12/15/08 10:35, Woods Yan wrote:
Hi,
I use [1] and [2] to simply import&export ODF flatxml. After importing a
flatxml in Impress, the <presentation:date-time/> in <office:master-styles>
will increase. But it's right to read&write the packed ODP file.
Could someone help me to debug the issue?
Thanks!
Woods Yan
[1] odfflatxmlimport.xsl
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
[2] odfflatxmlexport.xsl
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template
match="@office:mimetype[string(.)='application/vnd.oasis.opendocument.drawing']">
<xsl:attribute
name="office:mimetype">application/vnd.oasis.opendocument.graphics</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
--
Michael Brauer, Technical Architect Software Engineering
StarOffice/OpenOffice.org
Sun Microsystems GmbH Nagelsweg 55
D-20097 Hamburg, Germany [email protected]
http://sun.com/staroffice +49 40 23646 500
http://blogs.sun.com/GullFOSS
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]