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

Re: Introducing a comma.

Subject: Re: Introducing a comma.
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Tue, 18 Nov 2003 10:44:25 -0700
introducing commas
Youll have to tweak this to get the exact output you want but this will give
you the commas where you want them..
.......

<xsl:template match="signature">

 <xsl:apply-templates/>

</xsl:template>

<xsl:template match="in">

 <xsl:value-of select="."/><xsl:if test="position() != last()">,</xsl:if>

</xsl:template>

........

Best of luck!

M.

----- Original Message ----- 
From: "Ram" <sram_30@xxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 18, 2003 10:09 AM
Subject:  Introducing a comma.


> Hi,
> Can anyone help me out in introducing a comma?
> The xml source is:
> <signature>signature <identifier>DNSQuery</identifier>
>    <in>in<long>long</long><identifier>a</identifier></in>
>    <in>in<string>string</string><identifier>b</identifier></in>
>    <in>in<float>float</float><identifier>c</identifier></in>
> </signature>
>
> I've to introduce a comma between the first and second 'in',and between
> the second and third 'in' but not after the third 'in'.
>
> Thanks and regards,
> Ram
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread
  • Introducing a comma.
    • Ram - Tue, 18 Nov 2003 12:10:11 -0500 (EST)
      • David Carlisle - Tue, 18 Nov 2003 12:38:52 -0500 (EST)
      • M. David Peterson - Tue, 18 Nov 2003 12:44:34 -0500 (EST) <=
      • kakridge - Tue, 18 Nov 2003 12:50:27 -0500 (EST)
      • <Possible follow-ups>
      • cknell - Tue, 18 Nov 2003 13:07:04 -0500 (EST)
      • cknell - Tue, 18 Nov 2003 13:08:47 -0500 (EST)

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.