On Jul 10, 2006, at 6:17 PM, Ross Gardler wrote:
NOTE: Unfortunately, it broke the OOo plugin's ability to process images (which I still use to convert an OOo Impress file). I believe my serializer 'hi-jacked' or 'superceded' the graphics portion of the OOo Impress converter. Hopefully you'll get some ideas here. I got stuck, and then had some more pressing 'issues' to deal with (like a newborn...). [EMAIL PROTECTED] org.apache.forrest.plugin.input.odt]$ svn diff Index: input.xmap =================================================================== --- input.xmap (revision 411040) +++ input.xmap (working copy) @@ -49,6 +49,16 @@ <map:serialize type="xml" /> </map:match> </map:pipeline> + + <!-- Image Pipeline --> + <map:pipeline internal="true"> + <map:match pattern="openDocumentEmbeddedImage/zip-{1}.odt/file-**.*"> + <map:read src="" mime-type="image/{3}" /> + </map:match> + <map:match pattern="**/openDocumentEmbeddedImage/zip-{1}.odt/file-**.*"> + <map:read src="" mime-type="image/{4}" /> + </map:match> + </map:pipeline> </map:pipelines> </map:sitemap> Index: resources/stylesheets/odt-to-forrest-xhtml.xsl =================================================================== --- resources/stylesheets/odt-to-forrest-xhtml.xsl (revision 411040) +++ resources/stylesheets/odt-to-forrest-xhtml.xsl (working copy) @@ -18,6 +18,7 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" + xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" > @@ -57,4 +58,14 @@ </body> </html> </xsl:template> + + <!--+ + | Images + +--> + <xsl:template match="draw:[EMAIL PROTECTED]:show]"> + <xsl:variable name="href"><xsl:value-of select="@xlink:href"/></xsl:variable> + <img src="" + alt="[EMAIL PROTECTED]:name}" class="{./../@draw:style-name}" /> + </xsl:template> + </xsl:stylesheet> Web Maestro Clay My religion is simple. My religion is kindness. -- HH Dalai Lama of Tibet |
- Re: graphics and the odt plugin Web Maestro Clay
- Re: graphics and the odt plugin Ross Gardler
- Re: graphics and the odt plugin Web Maestro Clay
- Re: graphics and the odt plugin Paul Bolger