This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Formatting Question
- From: "Tengshe, Ashish" <Tengshe dot Ashish at principal dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Cc: "'Jitt_Joynoosaeng at cargill dot com'" <Jitt_Joynoosaeng at cargill dot com>
- Date: Thu, 8 Aug 2002 11:18:48 -0500
- Subject: RE: [xsl] Formatting Question
- Reply-to: xsl-list at lists dot mulberrytech dot com
I think you mean 507070 or 507070---
right? Then
<xsl:variable name="dashes" select="'---------'" />
<xsl:value-of select="substring(concat(six_digit_zip, $dashes), 1, 9)" />
This should do it! (Note: This should solve your 9 digit problem, for keeping the six digits, you should have a
normal <xsl:value-of select="six_digit_zip"/>
Thanks,
Ash
-----Original Message-----
From: Jitt_Joynoosaeng@cargill.com [mailto:Jitt_Joynoosaeng@cargill.com]
Sent: Thursday, August 08, 2002 11:09 AM
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] Formatting Question
Hello everyone,
I have a zip code tag that is stored in the regular 6 digit format and
also with 9 digits. For the 9 digits, I wanted to add a dash after the
6th digit. Is this possible to do? If it is, can someone show me how
it can be done?
Thank you!
Jitt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list