I posted a similar problem (although got no replies or help
from this list!)
instead of putting your reference to xmlns:xlink in your
svg header, put it in your stylesheet header as follows.
(The transformer engine won't be able to validate the
stylesheet otherwise.)
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xlink=http://www.w3.org/1999/xlink;
That should fix the problem. I got it working so that it
would produce me the svg with embedded images.
However, as soon as I try to then serialize the svg into a
jpeg, you get a broken image symbol rendered in the final
output. I'm trying to get the bottom of why the svg2jpeg
serializer breaks with embedded png images.
I would be eternally greatful (OK slight exagerration) if
anyone has got that to work.
Hope that helps, and let me know if you can serialize to
jpeg.
cheers,
James Ashton
--- Upayavira [EMAIL PROTECTED] wrote: Dear All,
I have been experimenting with SVG, in that I need to
overlay a number of transparent
images.
I have created a simple SVG file, shown below.
When I try to access this via Cocoon, I get the error:
The attribute 'xlink:href' of the element image is
required
When I use the Batik rasterizer which I downloaded
(batik1.5beta4b), it works fine. Any
ideas?
SVG file
svg width=740 height=499
xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink;
image xlink:href=base.png
x=0 y=0 width=740 height=499/
image xlink:href=overlay.png
x=0 y=0 width=740 height=499/
/svg
Sitemap fragment:
map:pipelines
map:pipeline
map:match pattern=test.jpg
map:generate src=test.svg/
map:serialize type=svg2jpeg/
/map:match
/map:pipeline
I am using Cocoon 2.0.2 on Tomcat 4.0.3 on Windows 2000
Professional.
Regards, Upayavira
-
Please check that your question has not already been
answered in the
FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]