|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
link not happening now
will try later and let know if useful, txHere'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. |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > parameters into xsl stylesheet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|