W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2002

Formatting a phone number using xsl

From: Tanguay, Lyne <ltanguay@minacom.com>
Date: Wed, 29 May 2002 10:28:08 -0400 (EDT)
Message-ID: <95545C1A68FCAC42A473828FCA78C94C9DE95E@strauss.minacom.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

We have no choice but to use a "for-each" loop to display multiple 
fields that compose the phone number.  
We want the "-" to act as the separation character. 
But when we do so, we get this result, for ex: 011-1-666-7777-

How can we prevent from having the last "-".

Thank you
L. Tanguay 

<xsl:template match="phone">
   <xsl:for-each select="*">
      <xsl:value-of select="@value"/>

E-MAIL : ltanguay@minacom.com
Received on Friday, 31 May 2002 11:08:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC