You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Will Holcomb <wh...@gmail.com> on 2006/08/30 09:34:12 UTC

query strings in file urls

I have a project where I would like to programmaticaly generate several
different versions of a SVG which changes based on the url query parameters.

http://odin.himinbi.org/us_map/

When, on the command line, I get and error when I try to pass in query
parameters, for example:

batik-rasterizer -d out.png file:labeled_USA_map.svg?show=VA
Error while converting files:
 Error: invalid url (file:labeled_USA_map.svg?show=VA)

I really don't know what is going on because even after I create a file with
the question mark in it:

ln -s labeled_USA_map.svg labeled_USA_map.svg?show=VA

All of these still fail:

batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg?show=VA
batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg\?show=VA
batik-rasterizer -d lbl_test.png file:labeled_USA_map.svg%3Fshow=VA
batik-rasterizer -d lbl_test.png 'file:labeled_USA_map.svg&#x3F;show=VA'

I can use symlinks and more javascript to get around this, but I am really
curious if there is a method for passing in query parameters from the
command line.

Will Holcomb

Re: query strings in file urls

Posted by "V. de Weger" <ba...@beno-delft.nl>.
I will. Thanks.
-- 
View this message in context: http://www.nabble.com/query-strings-in-file-urls-tf2188231.html#a6274918
Sent from the Batik - Users forum at Nabble.com.


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


Re: query strings in file urls

Posted by th...@kodak.com.
Hi Vincent,

"V. de Weger" <ba...@beno-delft.nl> wrote on 08/31/2006 02:20:55 AM:

> when we use a user style sheet we browse with the file browser to a 
.css, 
> squiggle then selects the .css as (e.g.) c:\css\my.css, which is not 
> useable since it should be file:///c:\css\my.css. Is there any way this 
> could be changed?

    This is now fixed in SVN.  Enjoy!


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


Re: query strings in file urls

Posted by "V. de Weger" <ba...@beno-delft.nl>.
Thomas, this remembers me to post a 'nice-to-have': in squiggle, when we use
a user style sheet we browse with the file browser to a .css, squiggle then
selects the .css as (e.g.) c:\css\my.css, which is not useable since it
should be file:///c:\css\my.css. Is there any way this could be changed?

Vincent
-- 
View this message in context: http://www.nabble.com/query-strings-in-file-urls-tf2188231.html#a6073797
Sent from the Batik - Users forum at Nabble.com.


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


Re: query strings in file urls

Posted by th...@kodak.com.
Hi Will,

"Will Holcomb" <wh...@gmail.com> wrote on 08/30/2006 03:34:12 AM:

> I have a project where I would like to programmaticaly generate several 
> different versions of a SVG which changes based on the url query 
parameters.

> batik-rasterizer -d out.png file:labeled_USA_map.svg?show=VA

   Your file URL is not a valid url.  It should look something
like:  file:///C:/foo/bar/labeled_USA_map.svg?show=VA

   Note that Batik will not strip the query parameters so it
will likely try and open a file with those parameters in it's name.

> I can use symlinks and more javascript to get around this, but I am 
really 
> curious if there is a method for passing in query parameters from the 
command line. 



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