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

Re: testing for several different conditions

Subject: Re: testing for several different conditions
From: Nick Browne <NickBrowne@xxxxxxxxxxxxxxx>
Date: Thu, 28 Sep 2000 19:13:39 +0100
xslt test several conditions
Eric, having looked through some 'old' books I think the problem is that early
versions of MSXML only allow boolean operators inside a predicate. One even
showed the syntax of xsl:if to use a 'match' attribute in place of 'test',
suggesting that only a valid path was/is allowed.

If you change your line to :

   <xsl:if test= ".[(//bookmark/@name = @internal) $or$ (@internal =
'whatnext' $and$ //next)]">

This is accepted without error though whether it gives the answers you require
I'm not sure - it looks OK !

The advice to upgrade is probably the best though I appreciate this may not be
practical given restrictions on your environment.

Regards
Nick Browne
Slipstone Ltd

Eric Taylor wrote:

> ...  Here's the offending line:
>
>    <xsl:when test= "(.[//bookmark/@name = @internal]) $or$ (.[@internal =
> 'whatnext'] $and$ //next)">
>
> Thanks,
> Eric


 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.