Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2004, 11:48 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default xml and xslt problem

hi,

i'm having a really tough time figuring this one out. i have an xml file that has the content for multiple pages. i also have an xslt file that picks that appropriate page from the xml, parses it and gives that to the code behind that then posts it into a place holder. my issue is this. when a user clicks a link like 'about.aspx?page=whatwedo', i need to take that argument and pass it to the xslt file so that i can match the appropriate section

so ideally i could do something like:

xsl:for-each select="$section"

where section is:

xsl:param name="section"

a parameter that i set from the C# code behind. But that doesn't work. How can i go about doing this? my eternal gratitude to anyone who can help me out. Thanks...

 
Old April 13th, 2004, 06:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

have you tried something like this (you may need to change the * depending on your context node)?
<xsl:for-each select="*[local-name()=$section]">





Similar Threads
Thread Thread Starter Forum Replies Last Post
XML to XML with xslt problem bertvanpet XSLT 1 July 5th, 2007 06:25 AM
XSLT process XML problem in XMLSpy xinr XSLT 2 September 14th, 2006 11:53 AM
problem transforming XML using xslt micky3248 XSLT 7 August 18th, 2006 03:52 AM
Problem using XSLT to change XML attribute cbeech1980 XSLT 1 October 18th, 2005 06:26 AM
problem in treeview using xml,xslt. jyoti_khera XSLT 3 October 18th, 2004 11:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.