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
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
>  XSL-List info and archive:

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

 XSL-List info and archive:

Current Thread