|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Selecting Elements fo processing
Hi all, I want to process something similar to: <item> <car> <maxspeed>120</maxspeed> <colour>red</colour> </car> <price>1000</price> </item> <item> <potatoes> <quality>1</quality> <pack>10kg</pack> </potatoes> <price>50</price> </item> so far I have: <xsl:for-each select="item"> <p><xsl:value-of select="price" /></p> </xsl:for-each> 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, nmk 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
|

Cart








