|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: replace function
<xsl:variable name="yourstring" select="somenode"/> <xsl:value-of select="translate($yourstring,',',', ')"/> should do it gl, jim fuller > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Stevenson > Ngila > Sent: 30 September 2002 16:18 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: replace function > > > All what i want to achieve is get a string i.e. "steve,john,peter" and > replace the next word to a comma with a space hence the new string become > "steve, john, peter" how can i achieve this using the translate function? > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of James Fuller > Sent: 30 September 2002 16:53 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: replace function > > > use translate() > > another 'hunt and peck' person I see. > > see what google said > > http://www.google.com/search?sourceid=navclient&q=Does+XSLT+have+a > +replace+f > unction%3F > > cheers, jim fuller > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Stevenson > > Ngila > > Sent: 30 September 2002 14:33 > > To: Xsl-List@Lists. Mulberrytech. Com > > Subject: replace function > > > > > > Does XSLT have a replace function? > > > > Thanks, > > Stevenson Ngila > > Footman-Walker Associates Ltd > > http://www.footman-walker.co.uk > > > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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








