cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Christophersen" <crai...@synesis7.com>
Subject Re: svg2png question
Date Thu, 28 Oct 2004 15:16:06 GMT
Good day Derek;
I sent a second reply with the correct path being
http://localhost:9080/navCoc/SVG/wire.png  , navCoc is my top level folder
for this application in tomcat webapps.
I agree that it seems that cocoon cannot locate the src url.  I see nothing
in the logs related to this.  Since it takes a few moments
before the not available X to show up in IE6 I assume it is looking for it.
Like I said the map:read of static files works fine as does
locating that same file wire.svg for an applet to display. If I remove my
sitemap entry below the wire.svg for the applet is not found.
At this point a am just going to have two image folders, one for svg and the
other for png to draw on.  I would like to just have the svg folder

and serialize on the fly.

<map:match pattern="SVG/*.svg">

<map:read src="SVG/{1}.svg" mime-type="image/svg+xml"/>

</map:match>

At this point a am just going to have two image folders, one for svg and the
other for png to draw on.  I would like to just have the svg folder

and

----- Original Message ----- 
From: "Derek Hohls" <DHohls@csir.co.za>
To: <users@cocoon.apache.org>
Sent: Wednesday, October 27, 2004 11:57 PM
Subject: Re: svg2png question


> Craig
>
> But is the "SVG" folder mounted under the Cocoon directory;
> I see you have no "cocoon" in the URL below.  I do not think
> the problem is with the serializer per se, but the fact that
> Cocoon cannot locate the src URL.  The log file should also
> indicate this.
>
> >>> craigch@synesis7.com 2004/10/27 04:41:53 PM >>>
> Derek
> Thanks for your response. If I call it directly as you suggest I get
> the
> same result(Not Available). If I place a gif in the same folder and
> refer to
> it I get it fine. My sitemap serializer is below.  I am using 2.14. I
> have
> an applet that gets the wire.svg file from that folder fine
> (url="http://localhost:9080/SVG/wire.svg").
> <map:serializer logger="sitemap.serializer.svg2png"
> mime-type="image/png"
> name="svg2png" src="org.apache.cocoon.serialization.SVGSerializer"/>
>
> ----- Original Message ----- 
> From: "Derek Hohls" <DHohls@csir.co.za>
> To: <users@cocoon.apache.org>
> Sent: Wednesday, October 27, 2004 12:13 AM
> Subject: Re: svg2png question
>
>
> > Craig
> >
> > I had no problems with a call like:
> >
> > <img src="svg/wire.png"/>
> >
> > What happens you call the pipeline directly -
> > eg.
> >
> > http://localhost:8080/cocoon/svg/wire.png
> >
> > I also had no problems with the pipeline per se;
> > just check it comes *before* the static image
> > handler.
> >
> > Derek
> >
> > >>> craigch@synesis7.com 2004/10/27 01:32:16 AM >>>
> > Hello:
> > I am trying to render an svg image as png in an html page. Sitemap
> > fragment is below.
> >
> > In my xsl simply using <img src="SVG/wire.png"/> does not get the
> job
> > done (as it does with
> > a map:read reference to static images in the sitemap). How should I
> > reference this pipeline in my xsl?
> >
> > <map:match pattern="SVG/*.png">
> >
> > <map:generate src="SVG/{1}.svg"/>
> >
> > <map:serialize type="svg2png"/>
> >
> > </map:match>
> >
> >
> >
> > Craig Christophersen
> > (406)496-6421
> > craigch@synesis7.com
> >
> > -- 
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > MailScanner thanks transtec Computers for their support.
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message