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

RE: when evaluated not=""

Subject: RE: when evaluated not=""
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Fri, 8 Sep 2000 13:41:43 +0100
javascript getdirectory
Eric,
Try

<xsl:when language="JavaScript"
expr="getDirectory(this.getAttribute('page')) != ''">

language="JavaScript" isn't really needed as it defaults to ECMA 262

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric Taylor
>Sent: 08 September 2000 12:45
>To: 'XSL-List@xxxxxxxxxxxxxxxx'
>Subject: xsl:when evaluated not=""
>
>
>Part of my XSL looks like this:
>
>        <xsl:choose>
>          <xsl:when *** stuck here ***>
>            <A>
>              <xsl:attribute
>name="href"><xsl:eval>getDirectory(this.getAttribute('page'))</xsl:
>eval></xs
>l:attribute>
>              <xsl:attribute name="target">new_window</xsl:attribute>
>              <xsl:value-of select="@text"/>
>            </A>
>          </xsl:when>
>          <xsl:otherwise>
>            <xsl:value-of select="@text"/>
>          </xsl:otherwise>
>        </xsl:choose>
>
>I only want the "when" to happen if
><xsl:eval>getDirectory(this.getAttribute('page'))</xsl:eval> returns some
>value (that is, if it returns a blank value, I want to do the "otherwise").
>I don't know the syntax for this.  Thanks.  Eric
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.