Subject: RE: [xsl] catching URL variable in XSL From: "Bruce Rojas-Rennke" <brr@xxxxxxx> Date: Wed, 20 Aug 2003 08:25:13 -0600 |
Thanks for the response, - what I'm trying to do, is: in one xslt page, I have it outputing HTML, with some links to another xslt page, that will also output html, both using the same xml input page. The links are as so (example): <a href="apTransDetail.cfm?item={../ColData[@colID='10']/@value}">845.92</a> which comes out in the HTML as: <a href="apTransDetail.cfm?item=2852-1059087424">845.92</a> In other words, I am passing the ID number of a transaction, so I can click on the amount/href, and then go to a page displaying the detail of the transaction. - The cfm page in the href is the template that calls the xsl processor (msxml). The transaction ID that I'm trying to pass is the key I need to filter my output on the 2nd page, to just show the detail for that item. I suppose I could make a 2nd xml request/response for the detail from the DB, but wouldn't it be cleaner and faster to simply re-use my xml page for both pages, as it has the detail for both? thanx, Bruce -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jarno.Elovirta@xxxxxxxxx Sent: Tuesday, August 19, 2003 10:37 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] catching URL variable in XSL Hi, > I am hoping to pass a variable as an url variable to an XSL > page and use > that variable within. > I have banged around the forums but am missing a straight > ahead working > answer.. I don't understand the problem you have. What does your XSLT processor complain when you declare the parameter using a top-level xsl:param instruction and bind a value to that parameter using the processor's API? Or do you mean you want to do something like have a URL such as http://foo.com/bar.xml?baz=qux and use the parameter "baz" in you stylesheet? If this is the case, you have to resort to extensions, vanilla XSLT won't get you there. Cheers, Jarno - Delerium: Eternal Odyssey XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] catching URL variable in , Jarno . Elovirta | Thread | [xsl] MSXML3 transformNodeToObject , Brook Ellingwood |
RE: [xsl] setXSLT function!, Jarno . Elovirta | Date | [xsl] FW: Problem with comparison, AROSO Jose Antonio |
Month |