Tom Schindl
Mon, 26 Jul 2004 06:56:34 -0700
svgpage.svgxml:
--------------------8<--------------------
<html>
<head>
<title>My XHTML+SVG</title>
</head>
<body>
<svg id="image1"><!-- SVG CONTENT --></svg>
</body>
</html>
--------------------8<--------------------html.xsl
--------------------8<--------------------
<!-- more XSL -->
<xsl:template match="svg">
<!-- replace svg through image -->
<img>
<xsl:attribute name="src">
svgpage.svgxml.png?image_id=<xsl:value-of select="@id" />
</xsl:attribute>
</img>
</xsl:template>
<!-- more XSL -->
--------------------8<--------------------svg.xsl --------------------8<-------------------- <!-- more XSL --> <!-- read the cgi-param --> <xsl:param name="image_id" />
<xsl:template match="/">
<!-- poor performance but could be optimized -->
<xsl:copy-of select="//[EMAIL PROTECTED]/*" />
</xsl:template><!-- more XSL --> --------------------8<--------------------
Did I get you?
This is only one approach you can e.g. also use a custom provider.
Tom
I see that. That only works if your document is entirely SVG though, no?
David
Tom Schindl wrote:
Hi,
well there are there already exists a Axkit-Transformer for this: http://search.cpan.org/~tomson/Apache-AxKit-Language-Svg2AnyFormat-0.06/
It uses the Image::LibRSVG-lib which is also owned by me. Svg2AnyFormat also support Image::Magick to transform svg although I think librsvg supports more of the svg-standard than Image::Magick. If you have any problems with the mentionned libs feel free to contact me.
Tom
Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
This message has been scanned but we cannot guarantee that it and any attachments are free from viruses or other damaging content: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]