This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Can I take only parts from node value?
- From: "Robert Koberg" <rob at koberg dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 19 Feb 2002 08:07:32 -0800
- Subject: Re: [xsl] Can I take only parts from node value?
- References: <000001c1b95e$483a9df0$0200000a@jphome>
- Reply-to: xsl-list at lists dot mulberrytech dot com
If they are always in that format you could use the substring function. I
would leave it this format because it will be easier to sort.
best,
-Rob
----- Original Message -----
From: "jp" <jp@tribalstorm.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, February 19, 2002 7:58 AM
Subject: [xsl] Can I take only parts from node value?
> Hi,
>
> If I have XML-tag like this:
>
> <today date="200202190800" />
>
> and I want output:
>
> Time is 08:00
> Date is 19.02
> Year is 2002
>
> How can I do this with XSL/T? Or should I change XML output?
>
> Regs,
> -JP
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list