[
Lists Home |
Date Index |
Thread Index
]
- From: Brent_Michalski@mastercard.com
- To: xml-dev@lists.xml.org
- Date: Tue, 11 Jul 2000 10:30:26 -0500
Thanks!
The external parsed entities worked perfectly...
<!ENTITY external_program SYSTEM "http://www.foo.bar/cgi-bin/blah.cgi">
Then, in the content part of the stylesheet...
&external_program;
Worked like a charm!
Thanks again,
brent
Matt Sergeant <matt@sergeant.org> on 07/11/2000 09:26:49 AM
To: Brent Michalski/STL/MASTERCARD@MASTERCARD
cc: xml-dev@lists.xml.org
Subject: Re: External programs
On Tue, 11 Jul 2000 Brent_Michalski@mastercard.com wrote:
>
>
> Is there an easy way to call external programs, such as CGI's, and have their
> output displayed in the page? I am using Cocoon and Tomcat.
You should be able to use any of the methods for bringing in external
resources, these include:
the document() function
<xsl:import>
<xsl:include>
and
external parsed entities.
All of those should be able to accept a URL of type
http://server/cgi-bin/foo.cgi as their parameter. Bear in mind that in
all cases the output from the CGI has to be either valid XML or a valid
external parsed entity.
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org
|