|
Subject: Re: [xsl] Extracting part of a string From: "Fatbob" <fatbob73@xxxxxxxxxxx> Date: Wed, 15 Apr 2009 08:58:09 -0400 |
Fantastic, working like a charm.
Thank you all for the info!
----- Original Message -----
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, April 15, 2009 8:49 AM
Subject: Re: [xsl] Extracting part of a string
> I think, it should be:
>
> substring-before(substring-after(@value, '('), ')')
>
> On Wed, Apr 15, 2009 at 6:14 PM, Fatbob <fatbob73@xxxxxxxxxxx> wrote:
> > Hi everyone!
> >
> > Given the following XML node
> >
> > <Field value="1956-01-12 (53 y)" name="age" />
> >
> > or
> >
> > <Field value="2008-07-14 (1 y)" name="age" />
> >
> > Is there an XSL function that will extract only with is in between the
> > brackets?
> >
> > The user just wants to see 53 y, not the birth date.
> >
> > I'm using XSLT 1.0.
> >
> > Thanks!
>
>
>
> --
> Regards,
> Mukul Gandhi
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Extracting part of a stri, Mukul Gandhi | Thread | Re: [xsl] Extracting part of a stri, David Carlisle |
| Re: [xsl] Extracting part of a stri, Martin Honnen | Date | Re: [xsl] Extracting part of a stri, Fatbob |
| Month |