[Home] [By Thread] [By Date] [Recent Entries]
hello lucy, thanks for your help, im sure that that method will work, but i
do not know much about the asp side of things, it would be greatful if you
could provide me with the sample code i would need to complete the circle.
I dont want it to sound like you are doing "all my homework" for me, its
that ive been trying to do this for a while and i just cant find no
suitable tutorials on the net aiming at my level. And Wrox ASP and XML pro
book is aimd at the intermediate and advance users, so that proved to go
straight over my head.
Thanks in advance! Date: Tue, 26 Mar 2002 16:59:40 +0000 From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx> Subject: Re: Dynamic XSL filtering using ASP hi amrit i think of a solution for you.. The gurus of the list please correct me if i am wrong. Here it goes.. From ASP Screen after u click on the date, you can pass this date value to the server side program (may be to the same ASP ). In the ASP Code , pass on this to the XSL as a parameter.( when u call the XSL Processor)..In your XSL,declare a global parameter , which accepts this.. for example your XSL could be along the lines of.. <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:param name="ASPParam"/> <xsl:template match="record"> <xsl:if test = "play_date = $ASPParam"> <xsl:value-of select = "record_num"> <xsl:value-of select = "record_title"> <xsl:value-of select = "record_artist"> <xsl:value-of select = "record_mix"> <xsl:value-of select = "record_label"> </xsl:if> </xsl:template> </xsl:stylesheet> .... You have to see the documentation of the XSL Transformer You are using to know how to pass the parameter to your XSL .. HTH laura.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



