Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 11-09-2011, 04:52 AM XSLT help
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
Hi not sure if this right place but i need some XSLT help.

Code:
			<td class="text" align="center">

				

				<xsl:for-each select="key('index', @id)">

						<xsl:value-of select="@class"/>	

				</xsl:for-each>

				

			</td>
I am pretty new to XSLT and from what I understand the above code is looping through the index and display anything under the @class. What is fine however I want to only display result where the @class = a certain word for example ture

How can I do this I have tried with xsl:if but I think I was doing it wrong any help would be really appreciated.

Thanks
__________________

Please login or register to view this content. Registration is FREE
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
 
Register now for full access!
Old 11-09-2011, 03:23 PM Re: XSLT help
King Spam Talker

Posts: 1,090
Name: Paul W
Trades: 0
http://www.w3schools.com/xsl/xsl_for_each.asp is a nice basic tutorial
__________________
Great music:
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to XSLT help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18094 seconds with 11 queries