This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: adding multiple variables to a complex condition
- From: "Garrick Besterwitch" <garrickb at infonox dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sun, 9 Dec 2001 10:26:06 +0530
- Subject: Re: [xsl] adding multiple variables to a complex condition
- References: <20011208221223.B22685@apple.fruitcom.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
How do I format numbers in XSL .
eg 456.00
Is there any format expression?
Thanx in advance :)
Garrick
----- Original Message -----
From: "Eric Smith" <Eric.Smith@fruitcom.com>
To: "XSL List" <xsl-list@lists.mulberrytech.com>
Sent: Sunday, December 09, 2001 2:42 AM
Subject: [xsl] adding multiple variables to a complex condition
> What is a good way to add other variables like output2 .. $outputn
> to this conditional?
>
> <xsl:template name= "conditional">
> <xsl:choose>
> <xsl:when test="
> $output='all'
> or
> (
> (ancestor::*|@*)[name()= $output] or
> contains(@include,$output) or
> contains(@exclusive,$output) and
> not(contains(@reject,$output)) and
> not(@exclusive and not(contains(@exclusive,$output))) and
> not(@reject = 'all')
> )
> ">yes</xsl:when>
> </xsl:choose>
> </xsl:template>
>
> --
> Eric Smith - currently using xalan and xsltproc - what a difference speed
makes - and fop on linux
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list