[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Help with an xsl:if

Subject: RE: Help with an xsl:if
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 8 May 2008 22:54:10 +0100
RE:  Help with an xsl:if
Of course it should be != rather than =! - but I wonder if that was really
your problem?

You can also write

<xsl:value-of select="crosslist[. != 'none']"/>

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Michelle Tarby [mailto:tarbymm@xxxxxxxxxxx] 
> Sent: 08 May 2008 19:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Help with an xsl:if
> 
> I can't figure out what I'm doing wrong with this statement. 
> If I take out the xsl:if, everything displays properly, but 
> I'd like to only display crosslist if there's something other 
> than none as a value:
> 
> <xsl:for-each select="fll/class">
> <xsl:value-of select="number"/>.
> <xsl:value-of select="title"/>
> (<xsl:value-of select="credits"/>)
> <xsl:if test="crosslist=!'none'">
> <xsl:value-of select="crosslist" />
> </xsl:if>
> <xsl:value-of select="prereq"/><br />
> <xsl:value-of select="description"/><br /><br /> </xsl:for-each>
> 
> Any suggestions would be appreciated.
> 
> --
> Michelle Tarby
> Director of Web Services
> Information Technology
> Le Moyne College
> http://www.lemoyne.edu
> tarbymm@xxxxxxxxxxx
> *****************************
> "That's the beauty of tomorrow. There is no such thing as a 
> setback. The lessons I learn today I will apply tomorrow, and 
> I will be better."
> - Tiger Woods

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.