xsl-list
[Top] [All Lists]

RE: catching URL variable in XSL

2003-08-20 07:25:13
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[(_at_)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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com
Sent: Tuesday, August 19, 2003 10:37 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



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