[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] replacing tabs and the like in a string


Subject: Re: [xsl] replacing tabs and the like in a string
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Wed, 19 Sep 2012 12:28:21 +0100

Thank you, it was the quotes around &#x9; that I was missing.

On Wed, Sep 19, 2012 at 12:25 PM, David Carlisle <davidc@xxxxxxxxx> wrote:
> On 19/09/2012 12:04, Ihe Onwuka wrote:
>>
>> I tried the obvious replace("abc def", &#x9;'\\t') (the space is a
>> tab)  and variations thereof (declaring a variable for the tab) and
>> I get "The regular expression in replace() must not be one that
>> matches a zero-length string"
>>
>> If you have a solution to hand I'd be grateful
>
>
> as posted it would be a syntax error as you only have two arguments to
> replace, it should be
>
>
> replace("abc def", '&#x9;', '\\t')
>
> To get the error that you showed you must have had a regex that matched ""
> usually because it has a * in it.
>
> David
>
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs.
> ________________________________________________________________________


Current Thread