cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject SVG <image> tag fails: 'xlink:href' required
Date Wed, 09 Oct 2002 11:49:30 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message