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

Re: Hmmmm.... translate function

Subject: Re: Hmmmm.... translate function
From: mark_fletcher@xxxxxxxxxxxxxx
Date: Fri, 14 Mar 2003 12:04:59 -0800
translating functions
You could just use 3 translate functions in a row.  Instead of this:

<xsl:value-of select="translate($div,'+','%2B')/>

Use this:

 <xsl:value-of select="translate($div, '+', '%')"/><xsl:value-of select
="translate($div, '+', '2')"/><xsl:value-of select="translate($div, '+',
'B')"/>


Mark Fletcher
PeopleSoft Language Engineering
925.694.3753
mark_fletcher@xxxxxxxxxxxxxx



                                                                                                                          
                      "Karl Stubsjoen"                                                                                    
                      <karl@xxxxxxxxxxxxx>              To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx                         
                      Sent by:                          cc:                                                               
                      owner-xsl-list@xxxxxxxxxxx        Subject:  Re:  Hmmmm.... translate function                  
                      rrytech.com                                                                                         
                                                                                                                          
                                                                                                                          
                      03/14/2003 11:45 AM                                                                                 
                      Please respond to xsl-list                                                                          
                                                                                                                          
                                                                                                                          





> Translate is on character basis, that is translating the character on
> the 2nd string to the character on the same position on the 3rd string.
> More characters you provide on 3rd string will just be ignored.
> Seems there's no convinient function in xsl to be found to solve your
> problem. You may want to combine substring-before and substring-after
> functions.

Err... that stinks.

What about:  is there some sort of encoding translation device, as in
encode
text for a specified type.  See my prblem is, the + symbol as part of a
querystring is interpretid as a space... so I need to encode it '%2B' when
I
generate the HREF.

Thanks.  Karl


 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

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.