Subject: :Re: [xsl] Dynamic XSL filtering using ASP From: Amrit Gill <gillism@xxxxxxxxxxxx> Date: Wed, 27 Mar 2002 20:37:42 +0000 |
Date: Tue, 26 Mar 2002 16:59:40 +0000 From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx> Subject: Re: [xsl] 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.
>From: Amrit Gill <gillism@xxxxxxxxxxxx> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx >Subject: [xsl] Dynamic XSL filtering using ASP >Date: Tue, 26 Mar 2002 16:19:51 +0000 > >hi guys, i have been struggling with this for a long time now, and have >finally come to an end and need professional advice (you guys!). > >My problem is this, i have a xml file whish is structured as follows: > ><playlist> > <record> > <play_date>18Feb02</play_date> > <record_num>1</record_num> > <record_title>Star Suite</record_title> > <record_artist>Mondo Grosso</record_artist> > <record_mix>Blaze Shelter Dub</record_mix> > <record_label>King St</record_label> > </record> > <record> > <play_date>25Feb02</play_date> > <record_num>1</record_num> > <record_title>Back Fire</record_title> > <record_artist>Masters At Work</record_artist> > <record_mix>Album Mix</record_mix> > <record_label>MAW Records</record_label> > </record> ></playlist> > >And i want to be able to filter out the correct <record>'s from the >playlist.xml file. For example i want to display all the records which >were played on the 25feb02, or on the 18feb02. I know i need an XSL to do >this, but i have no real clue, nor do i have a great idea on what sort of >ASP code i need. > >To iterate myself again, i want to be able to click on a date in a asp >file, which then passes the date to the xsl file, which then filters out >the right records, with the same play_date as the date passed from the asp >file, and finally display them in a table. > >i thank you all in advance for giving time to read it, and great thanks in >helping me. > >Gill. > > >XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE: [xsl] windows-like table so, Michael Kay | Thread | [xsl] How to pass search path as va, Andrew Kerns |
Re: [xsl] sequence numbering., Jörg Heinicke | Date | [xsl] How to pass search path as va, Andrew Kerns |
Month |