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

RE: conditional processing <xsl: when test ...>

Subject: RE: conditional processing <xsl: when test ...>
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 29 Aug 2001 06:19:43 +0300
contains xsl xsl when test
>  <xsl:choose>
>        <!-- use EXACT if SqlExpression has an "="  sign"  -->
>         <xsl:when test="//SqlExpression/@where=attribute(=)">
>           <EXACT value="9">
>           </xsl:when>
> 
>         <!-- otherwise   -->
>         <!-- use RANGE if SqlExpression has an "<" or ">"  sign -->
>         <xsl:when test="//SqlExpression/@where=attribute(< | >)">
>          <RANGE lower="9" upper="200" >   <!-- I will have to do
> something here in order to be accurate about the actual 
> range, since the
> ">" sign is used, as opposed to ">=" ...)
>        </xsl:when>
> 
>         </EXACT>
> 
>          </RANGE>
>   </xsl:choose>
> 
> 
> Am I using the "=attribute()" correct? Am I on the right track?

No. The test should be

  <xsl:when test="//SqlExpression/@where[contains(.,'=')]">

and the second one

  <xsl:when test="//SqlExpression/@where[contains(.,'&lt;') or
contains(.,'&gt;')]">

Jarno

 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.