From sangkyulee at gmail.com Sun Jun 27 14:57:12 2010 From: sangkyulee at gmail.com (robert lee) Date: Sun, 27 Jun 2010 08:57:12 -0400 Subject: [odf-xslt] How to handle ODP file Message-ID: <50182F7B-6A2E-43C9-A546-8DE7D493DEE1@gmail.com> The library works very well on the ODT file. Do you have example of how to use ODP file as template following two use case. 1) Replace Text OpenOffice impress does not have Insert->Field->Other to put in a special tag. Is there an alternate method. 2) Replace Image I use the following in the Title of the Description of the image and received the below error. Any guidance on the correction? {@child ../draw:image } Warning: XSLTProcessor::transformToDoc(): runtime error: file /Users/rslee/src/sarparse/report/odfxsl/ line 2 element attribute in odf-xslt-0.4/odf-xslt.php on line 258 Warning: XSLTProcessor::transformToDoc(): xsl:attribute: Cannot add attributes to an element if children have been already added to the element. in odf-xslt-0.4/odf-xslt.php on line 258 Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, boolean given, called in odf-xslt-0.4/odf-xslt.php on line 259 and defined in odf-xslt-0.4/odf-xslt.php on line 355 Regards,