xsl-list
[Top] [All Lists]

Re: [xsl] replacing of characters based on position

2010-11-16 14:09:38
On Tue, Nov 16, 2010 at 2:58 PM, ram <ram_kurra(_at_)yahoo(_dot_)co(_dot_)in> 
wrote:
 step2:550e84000e29b041d40a7160446655440000   to
 550e8400-e29b-41d4-a716-446655440000
        how can i do this based on position number/index[9]

Hermann's message shows how to do both steps (replacing dashes with
zeros, and the reverse) in XSLT 1.0.  If you decide you can just drop
the dashes and put them back, rather than replacing them with zeros,
only slight modifications would be needed, mainly to the positions
(second argument) fed to the "substring" function calls.

-Brandon :)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--