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>

Reply via email to