|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Question reqarding display the content pending on
ªL ¤lªä wrote: > the question is, how do i insert the comma at the end of each children > element using xsl stylesheet BUT not adding a comma for the last > children (e.g. wayne for the smith and Jay)? Check whether a children is last one. <xsl:template match="children"> <xsl:value-of select="."/> <xsl:if test="position()!=last()">, </xsl:if> </xsl:template> in addition, is there a way > to use xsl:if statment that will give a condition that states "if the > number of element (children in the above example) are more than 1" Just as you said: <xsl:if test="count(children) > 1"> -- Oleg Tkachenko Multiconn International, Israel 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








