[xsl] Selecting Elements fo processing

Subject: [xsl] Selecting Elements fo processing
From: Nickolay Kolev <nmkolev@xxxxxxxxxxx>
Date: Sat, 5 Oct 2002 12:54:49 +0200
Hi all,

I want to process something similar to:







so far I have:

<xsl:for-each select="item">
	<p><xsl:value-of select="price" /></p>

for getting the price element which is common to all items...

But how do I write:

if child element is car print "maxspeed is XXX and the colour is YYY"

else if child element is potatoes print "quality is XXX and the origin 
is YYY" 

else if ...

else ...

I hope I have made myself clear.

Many thanks in advance,

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread