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

Re: Need a confirmation of a difference between WD-xsl

Subject: Re: Need a confirmation of a difference between WD-xsl and 1999/XSL/Transform
From: "Jonathan Perret" <jonathan@xxxxxxxxxxxx>
Date: Wed, 23 Jan 2002 15:30:17 +0100
Re:  Need a confirmation of a difference between WD-xsl
> I can't do this (the output file would be too large)
> <xsl:if test='test1'>
>      write my XML bloc
> </xsl:if>
> <xsl:if test='test2'>
>      write my XML bloc
> </xsl:if>
> <xsl:if test='test3'>
>      write my XML bloc
> </xsl:if>
> And it's the same with the xsl:choose/xsl:when.

I can't help with the other points, but (perhaps only for the sake of
discussion ?)
here's an equivalent way of doing an OR with 3 if's that doesn't involve
the result block :

<xsl:variable name="testresult">
 <xsl:if test='test1'>x</xsl:if>
 <xsl:if test='test2'>x</xsl:if>
 <xsl:if test='test3'>x</xsl:if>
<xsl:if test="string-length($testresult)!=0">
      write my XML bloc

(note that you can do AND by just replacing the final test with


 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.