Re: [xsl] replacing of characters based on position

Subject: Re: [xsl] replacing of characters based on position
From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Nov 2010 15:09:25 -0500
On Tue, Nov 16, 2010 at 2:58 PM, ram <ram_kurra@xxxxxxxxxxx> 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 :)

Current Thread