This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dynamic XSL filtering using ASP


Hello Amrit,

your best bet is to go to www.bayes.co.uk/xml

and go through the beer tutorial and page filtering examples

essentially u will need to inject a param into your stylesheet

to pass the param so that <xsl:param /> can find it..... each XSLT processor
has a different method.

with IE u use a bit of clientside script, would suggest starting there
first.

so the 'date' u speak of would be the parameter being injected.....

how to do pattern matching in your stylesheet, first things first though,

cheers, jim fuller

----- Original Message -----
From: "Amrit Gill" <gillism@ntlworld.com>
To: <XSL-List@lists.mulberrytech.com>
Sent: Tuesday, March 26, 2002 4:19 PM
Subject: [xsl] Dynamic XSL filtering using ASP


> 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
>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]