[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
> 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 duplicating 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:variable> <xsl:if test="string-length($testresult)!=0"> write my XML bloc </xsl:if> (note that you can do AND by just replacing the final test with "string-length($testresult)=3") Cheers, --Jonathan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|