OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
My XML assignment
This page's ID:
11057
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
First of all, if you only want to print it out if it meets a certain criteria, and do nothing if it doesn't meet that criteria, you should use xsl:if Secondly, you would use 'or', not 'and' as an operator, otherwise you would be looking for cases where it was awarded all 3 awards. [code] <xsl:for-each select="home/list"> <xsl:if test="award = 'Gold' or award = 'Silver' or award = 'Bronze'"> <tr > <td ><xsl:value-of select="winery" /></td> <td ><xsl:value-of select="wine" /></td> <td ><xsl:value-of select="color" /></td> <td ><xsl:value-of select="award" /></td> <td ><xsl:value-of select="price" /></td> </tr> </xsl:if> </xsl:for-each> [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »