as per my original post plus the changes you recommended, my svg process is now. Still the images are broken and I don't get any errors in the logs either! I think I have 2 more handfuls of hair, tops, to pull out before I am completely bald!!! ;-)
1. Sitemap def:
<map:serializers default="html">
<map:serializer name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/jpeg" logger="sitemap.serializer.svg2jpeg"/>
</map:serializers>
......
<map:match pattern="frame/*.jpg">
<map:generate type="serverpages" src="xsp/artist-details.xsp" />
<map:serialize type="svg2jpeg"/>
</map:match>
2. XSL def:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<xsl:output method="xml" indent="yes" media-type="image/svg+xml"/>
<xsl:template match="/">
.........
<xsl:template match="artists-photo1">
<svg xmlns:svg="http://www.w3.org/2000/svg" width="300" height="300">
<g transform="scale({300} {300})">
<xsl:apply-templates />
</g>
</svg>
</xsl:template>
3. XSP def: (artist-details.xsp)
.......................
<artists-photo1>
<xsp:element name="image">
<xsp:attribute name="xlink:href">data:image/jpeg;base64,</xsp:expr></xsp:attribute>
<xsp:attribute name="width"></xsp:attribute>
<xsp:attribute name="height"></xsp:attribute>
</xsp:element>
</artists-photo1>
many thanks in advance
On 17 Feb 2004, at 16:42, [EMAIL PROTECTED] wrote:
try adding the namespace....
Example
<xsl:stylesheet xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<svg xmlns:svg="http://www.w3.org/2000/svg" width="520" heigth="300">
<g transform="scale({$scalex} {$scaley})">
<xsl:apply-templates select="chart"/>
</g>
</svg>
</xsl:template>
</xsl:stylesheet>
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Jorg Heymans
Sent: 17mm2004 17:31
To: [EMAIL PROTECTED]
Subject: Re: SVG broken images.....HELP!!
Do they render correctly in Batik ? Batik comes with an svg image
viewer, squiggle or something.
If they aren't rendering there then chances are slim cocoon will render
them (because it uses those libraries).
There can be a million other things otherwise, check error.log or
core.log for more specific svg rendering error messages.
hth
Jorg
beyaNet Consultancy wrote:
Steve,
not having used svg technology before today, could you elaborate further
on what you mean? I searched the net for an svg viewPort attribute but
only managed to come up with viewBox. Is that what you were making
reference to:
<svg width="300" height="300" viewBox="0 0 300 310"> ?
If so, the images are still broken!
many thanks in advance
On 17 Feb 2004, at 15:52, Steve Schwarz wrote:
Hi
Don't you need to specify a viewPort attribute in your outermost
<svg> element?
Steve
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
.........
<xsl:template match="artists-photo1">
<svg width="300" height="300">
<xsl:apply-templates />
</svg>
</xsl:template>
_________________________________________________________________
Say "good-bye" to spam, viruses and pop-ups with MSN Premium -- free
trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
