cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjul Srivastava" <an...@anjul.com>
Subject Re: SVG serving problem
Date Mon, 26 Mar 2001 03:05:22 GMT
It would be nice if points 4 and 5 below could be overcome
but I suspect it is a Tomcat issue or something that I am
doing wrong. That would enable me to get around the
workaround of appending "?dummy=rect01.svg". Of course, the
problem maybe with Adobe's SVG viewer for Internet Explorer,
or with MSIE itself.

Thanks,
Anjul.

----- Original Message -----
From: "Anjul Srivastava" <anjul@anjul.com>
> Okay, I found the problem. I thought I should share the
> observations for anybody else trying to do similar stuff:
>
> 1. cocoon ignores any file that does not match the pattern
> *.xml
> 2. Adobe's SVG viewer ignores any file that does not match
> the pattern *.svg
> 3. You can change the pattern that cocoon matches by
> modifying <url-pattern/> in WEB-INF/web.xml
> 4. You CANNOT (rather, I could not) specify multiple
> patterns *.xml and *.svg in web.xml.
> 5. You CANNOT (rather, I could not) specify a pattern of
*.*
> or * in web.xml.
>
> The solution:
>
> 6. When a cocoon URL is accessed with "?dummy=xxx.yyy"
> appended, cocoon translates the SERVED file name as if it
> were xxx.yyy. So, instead of accessing:
> http://www.anjul.com/rect01.xml I access:
> http://www.anjul.com/rect01.xml?dummy=rect01.svg
> 7. In the XML file, add as the second line:
<?cocoon-format
> type="image/svg-xml"?> (this is an obvious step)



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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