Subject: Re: [xsl] Running unix commands (remotely on a server) from a windows webbrowser. From: Josh Canfield <joshcanfield@xxxxxxxxx> Date: Wed, 15 Sep 2004 16:52:29 -0700 |
Ok, then this isn't really a question about XSL, thus making this the wrong forum. If you are accessing the image from the browser then the usual (at least for me) way to do this would be to have a servlet, or CGI program that generates the image, and then in your html you have an image element that points to the url for that servlet/CGI program. <img src="http://myunixbox/mycontext/myservlet?attr1=value1&attr2=value2"/> But, like I said before this is all way off topic for this list. try http://www.google.com/search?hl=en&ie=UTF-8&q=generating+web+images it find this: http://today.java.net/pub/a/today/2004/04/22/images.html which may or may not help... Josh On Wed, 15 Sep 2004 16:37:41 -0700, Hemanth Singamsetty <hemanth.singamsetty@xxxxxxxxx> wrote: > Hello Josh, > > Thanks for your reply. I'm generating the HTML files using XSL. > Currently, I'm storing "all" the images (snapshots of a graphic > display) in the same directory that contains the HTML files. (For > example, my HTML page has X, Y, and Z as links. When I click on the X > it opens the X.jpeg in the webbrowser and I already have the X, Y, Z > jpeg files stored). But I want to generate a image and display it in > the browser only when a user clicks on the link (say X here). > > What I do not know is how to write code to establish a connection to > the unix machine and invoke the program to generate the image and > display it back on the web browser. Hope my problem is clear. Thanks. > > Hemanth > > On Wed, 15 Sep 2004 16:05:50 -0700, Josh Canfield > > > <joshcanfield@xxxxxxxxx> wrote: > > What part are you trying to do in XSL? What part do you not know how to do? > > > > You can create XSL that will generate your HTML, or conceivably you > > could create an extension function that fired up your image creation > > program and used some passed in XML to create an image (perhaps a > > graph?) and returned a URL that you could embed in your output > > document... > > > > Josh > > > > On Wed, 15 Sep 2004 15:28:52 -0700, Hemanth Singamsetty > > > > > > <hemanth.singamsetty@xxxxxxxxx> wrote: > > > Hi, > > > > > > I've an XML file and I'm using XSLT to create few HTML pages on a > > > windows machine. My problem is, whenever a user clicks on a link on > > > the HTML page, I want to access a unix machine on the network and > > > execute a unix command (basically to run a C++ program that creates an > > > image -jpeg- file) and display the image back in the web broswer on > > > the windows machine. > > > > > > Is there a possibility that I could do the same using XSLT (and its > > > extensions) or is there any other way to generate webpages, with above > > > functionality, from the data in an XML file? > > > > > > I've been doing some searching on the web but I haven't been > > > successful. Any input/help would be much appreciated. > > > > > > Thanks in advance, > > > Hemanth.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Running unix commands (re, Hemanth Singamsetty | Thread | RE: [xsl] Running unix commands (re, Michael Kay |
Re: [xsl] call JavaScript when radi, Josh Canfield | Date | RE: [xsl] apply-templates and prior, Michael Kay |
Month |