[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Question reqarding display the content pending on the

Subject: Question reqarding display the content pending on the number of elements
From: "=?big5?b?qkwgpGyq5A==?=" <minikittygo@xxxxxxxxxxx>
Date: Wed, 23 Jan 2002 16:21:24 +0000
pending on


Hi
i was wandering whether anyone are able to help me out on this question...

this is my problem in using xsl...

suppose i have a xml such as this...
<family>
<name>Smith</name>
<parent>John</parent>
<children>may</children>
<children>kit</children>
<children>wayne</children>
</family>

<family>
<name>Jones</name>
<parent>Jason</parent>
<children>Jay</children>
</family>
....and so on

i wish to transform the data into a text format such as this: -
/*-----------------------------------------*/
name of the family: smith
parent: John
Children: may, kit, wayne

name of the family: jones
parent: Jason
Children: Jay
/*-------------------------------------*/

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)? 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"

many thanks for your help

regards Kit

_________________________________________________________________
¦b http://explorer.msn.com.hk/intl.asp §K¶O¤U¸ü MSN Explorer¡C


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.