
Radu, It appears to work. ;-) <?xml version="1.0" encoding="UTF-8"?> <fo:root xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:variable name="svg-file" select="document-uri(/)"/> <xsl:variable name="height" select="/svg:svg/@height"/> <xsl:variable name="width" select="/svg:svg/@width"/> <fo:layout-master-set> <fo:simple-page-master master-name="svg" page-height="{$height}" page-width="{$width}"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="svg"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:external-graphic src="{$svg-file}"/> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> Thanks for the idea, Florent. Cheers, Wendell On 6/7/2011 7:37 AM, Radu Coravu wrote:
Hi Wendell,
Thanks for the improvement request, we'll consider it for a future version.
Florent Georges' suggestion about integration in the transformation scenarios gave me a workaround for you.
You can create a small XSL-FO file which references the image (without any additional text) and performing FO processing using Apache FOP in a modified Oxygen "FO to PDF" transformation scenario in the "FO Processor" tab you can choose from various output methods among which you can find "png" and "tiff":
http://www.oxygenxml.com/doc/ug-oxygen/topics/defining-new-transformation-sc...
So instead of creating the PDF using Apache FOP you can create an image.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 6/6/2011 8:15 PM, Wendell Piez wrote:
Hi,
As you know, Batik comes with rasterizer code to convert SVG into JPEG and PNG formats. (And others, including TIFF, EPS and PDF.)
I happily use it on other platforms, but sometimes I'd really like to do this in oXygen ... any chance of adding a widget for SVG files to support this?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================