[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Dynamic XSL filtering using ASP

Subject: Re: Dynamic XSL filtering using ASP
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Tue, 26 Mar 2002 16:59:40 +0000
dynamic xsl 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:  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




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.