Select Categories Below
Status: Closed Points: 150 Time: 03:21 - Dec 05, 2006
theDude
In my XSLT document I need to run through a list of nodes and for each node call a template. But I need to pass the node as a parameter to the template. Is that possible? And how do I refer to the node within the template?
Categories:
Add Categories
When adding more than one category, separate them with commas.
Advertisement
Date:: Dec 05, 2006
Time:: 03:41
i found out it wasn't so difficult: <xsl:call-template name="concert"> <xsl:with-param name="node" select="."/> </xsl:call-template> <xsl:template name="concert"> <xsl:param name="node"/> <xsl:value-of select="$node/id" /> </xsl:template> It was the part about getting the node attribute that I had wrong, when I tried.
xarcus
Time:: 07:37
Add the "attribute axis" sign @ to the attrib. name <xsl:value-of select="$node/@id" />
Date:: Dec 15, 2006
Time:: 12:17
actually Xarcus, it worked for me without the @, I have no idea why?! thanks anyway.
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
how do i open a file dialog in .net (a windows application)?
When trying to alter a table in MySQL, I get "Error on rename... (Errcode: 13)"
how do i delete a top domain cookie from a subdomain?
Hi Am Rakesh, Am generating User Data List, Details Given Below.Please Help Me.
What is some free software for recording the movements on your computer screen t...
Good project management software?
You have 100 characters to use
Rank
Expert
Points
1.
95
2.
25
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software Real Estate Postcards Marketing Fulfillment