XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 1st, 2003, 01:53 PM
knew_b knew_b is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: london
Posts: 4 knew_b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question parameters into xsl stylesheet

Hello all,

I'm trying to create a site by loading (client side) one xml doc with just one xsl doc. My thinking being that I can bring navigation elements to the table (sic) within the xsl that allow the user to set values to select in xsl:for-each elements which determine the content displayed.

I've followed a few forum links etc. and it seems it can be done by using js to load paramaters into the xsl - eg:

URL

...but I've smoked too much in my time and my mind boggles.

I'd be v. grateful for either an explanation of the msdn instructions, or a simple way to allow user-input into my xsl variables...

tx in advance, james.

Reply With Quote
  #2  
Old March 1st, 2003, 09:13 PM
customfittech customfittech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: St. Louis, MO USA
Posts: 43 customfittech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Try this link, it's got some good insight, but is more than likely tiny help if any.

It's a little hard to decipher your question's purpose, can you give a clear example of what you want?
__________________
- Chris of Custom Fit Technology
http://www.customfittech.com

Access to MySQL Conversion Tool,
Visual XSLT Conversion Tool

Reply With Quote
  #3  
Old March 2nd, 2003, 02:16 PM
knew_b knew_b is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: london
Posts: 4 knew_b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
link not happening now will try later and let know if useful, tx

Here's my situation:

I've an xml doc with categorised info for a list of tracks by a band I'm doing a website for, eg: for each track I've audio src, lyrics, image(s), etc.

So, I use a simple table layout in xsl, telling it what to put where for each track.

However, I only want to display one track at a time, depending on which track the user has selected from a drop down menu.

So, I want the options in the drop down menu to set a parameter which my xsl doc looks for. ie: <xsl:for-each select="$parameter"/>

That way, the user can control which chunk of data they look at (all nicely displayed, of course) and I only need load one xml and one xsl.

ok - unneccessary for this band site (they've only got three tracks!) but relevant to work I'm doing on a more complicated front-end for a cms. Also, I think it neat to include the nav element in the xsl stylesheet so that each new track added to the xml doc can automatically produce it's own navigation option in the vairous menus.


hmm, I re-read and wonder if I've made it any clearer? Again, help much apprieciated,

james.

Reply With Quote
  #4  
Old March 3rd, 2003, 12:56 PM
DarrenJ DarrenJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 42 DarrenJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 21 sec
Reputation Power: 6
If you're using PHP then I can show you how to send parameters to the stylesheet.

Let me know if you want that.
__________________
Best regards
Darren

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > parameters into xsl stylesheet


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway