This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Displaying part of a string
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Displaying part of a string
- From: Matthew Bentley <Matthew dot bentley at brookers dot co dot nz>
- Date: Tue, 29 Aug 2000 09:17:48 +1200
- Reply-To: xsl-list at mulberrytech dot com
> I would like to be able to display just a portion of a string. For
> example, the <date> element that I get back from the database is both
> date and time. I only want to display the first 10 digits of
> the <date>
> element. I don't see an XSLT command for this. Any suggestions?
substring(., 1, 10)
Outputs the first ten characters from the 1st char in the text of the
current node -
Matt
******************************************************************
Warning: This email, including any attachments,
is for the use of the intended recipient(s) only.
Republication and redissemination,
including posting to news groups or web pages,
is strictly prohibited without the express prior consent of Brooker's Limited.
******************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list