xsl-list
[Top] [All Lists]

RE: interactive: calling CGIs using document("") function

2003-04-03 22:31:38
Hi,

One thing I want to do with the parameters is potentially add one of 
them into a file, and I think I will try to do this using the 
document 
call. My idea is that the XSLT will have something like this:

<xsl:param name="some_input"/>

...

   <xsl:value-of 
select="document('http://localhost/foo/bar.cgi?input={$some_in
put}')"/>

Where /foo/bar.cgi is some CGI (could be XSLT too of course!) 
that will 
take the input parameter and add it to a file and return 
perhaps simply 
a yes or a no answer as the output something like this:
<foo_bar_result>OK</foo_bar_result>

Since I'm using a pipeline I can then have a look at the 
result in the 
next stage of the pipeline to see if it worked!

I didn't find this in the XSLT FAQ so I thought I'd post it. Thoughts?

I am also a little concerned about security too.

Perfectly legal, but remember that if you use the instruction above twice 
during one transformation, the XSLT processor has most probably cached the 
response, and will not do a second GET.

Cheers,

Jarno - VNV Nation: Structure

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>