cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautam Ganguly" <ggan...@transunion.com>
Subject XSP+SVG in cocoon-2.0.4
Date Sun, 29 Jun 2003 23:59:30 GMT
hi there,
    I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
        As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content to
the users browser which then will handle the responsibility of
displaying the SVG .
       
My xsp documents looks something like this:
<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
  <document>
     <header>
                <title>Test SVG Page</title>
     </header>
     <body>
     <s1 title="SVG Image">
           <p>You can use the mouse right click event to Zoom-In 
                   or Zoom-Out  
           </p> 
           <p>
                 <img src="batikFX.svg"/>
           </p>
   </s1>
 </body>
</document>
</xsp:page>

Currently my sitemap pipeline looks like this:
   <map:match pattern="*.svg">
           <map:generate src="resources/svg/{1}.svg"/>
            <map:serialize type="svg2png"/>
  </map:match>

  What is the bext possible way to go about these? Can anyone help me
out on these?    

regards,
Gautam






---------------------------------------------------------------------
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