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

Re: XSL $and$ or $or$

Subject: Re: XSL $and$ or $or$
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Mon, 17 Jan 2000 22:47:55 -0500
xsl and or
You need to say which XSL processor you are using.  If you are using IE
5, then you are stuck with what Microsoft tells you.

If you are using XSLT 1.0, effectively a different language, there are
lots of resources, beginning with the specifications which everyone
using this list should already have read forwards and backwards.

In XSLT 1.0, the operators you are looking for are simple 'and'
and 'or'.  Grouping may be done with '(' and ')'.  The details,
including precedence, are given in the XPath specification, especially
sections 3.1 and 3.4.


Joao Pedro Martins wrote:
> Can someone please help me with some hints on doing this?
> I have a complex XSL preprocessing XML to produce more XML,
> and I would like to write a xsl:if test with the following
> form:
> <xsl:if test="a OR (b AND c)">
> I tried and, $and$, $or$, &&, ||, and had no luck: all these
> produced errors. | worked, but & didn't.
> I looked for examples, but found none that mentioned this,
> and the one at Microsoft's is too simple for what I want.
> (it's something like ELEMENT[isbn and autor])...
> any help or pointer would be GREATLY appreciated.
> thanks in advance,
> joão martins
> --
> Eng. João Pedro Martins
> Link - INESC Consultadoria e Serviços
> Unidade Design e Comunicação Interactiva
> Telf# (+351) 213100094 / Fax # (+351) 213100009
> Lisboa, Portugal
> http://www.link.pt
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Steve Tinney                                        Babylonian Section
                                 *   University of Pennsylvania Museum
stinney@xxxxxxxxxxxxx                          Phila, PA. 215-898-4047

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

Current Thread


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.
First Name
Last Name
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.