Subject: Re: [xsl] <xsl:if> and <xsl:else>? From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 15 Dec 2003 13:50:29 GMT |
> Actually I use <xsl:choose> to accomplish that That's what it is there for. > but maybe there is a shorter way to do it, xsl:choose has one child for the if bit and one for the else, it's hard to imagine an xml syntax that would be _much_ shorter. In xslt2 draft you can do more conditionals in xpath rather than xslt <xsl:value-of if (a=b) then c else d"/> which _is_ shorter. David -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] <xsl:if> and <xsl:else>?, Jaime A Stuardo Baha | Thread | [xsl] Avoid overlapping (contents o, Jonny Pony |
RE: [xsl] <xsl:if> and <xsl:else>?, SHEIKH Sajjad | Date | [xsl] <xsl:if> and <xsl:else>?, Jaime A Stuardo Baha |
Month |