[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: interactive: calling CGIs using document("") funct

Subject: Re: interactive: calling CGIs using document("") function
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Fri, 4 Apr 2003 17:12:52 -0500
cgi s

On Friday, April 4, 2003, at 03:54 AM, Michael Kay wrote:


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

No problems with your design approach, but you can't use an AVT inside an XPath expression. You need to build the URI using concat().

something like this?


<xsl:value-of
select="document(concat('http://localhost/foo/bar.cgi?input=', $some_input))"/>


Also be aware that if you use the same URI twice, you will get the same
document back, which may not be the latest data.

Cool -- I have a workaround which is to use number math:random() from EXSLT ain an additional dummy parameter ... supported in Daniel's libXSLT :-)


simon
--
www.simonwoodside.com -- 99% Devil, 1% Angel


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.