[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Format-number problem

Subject: RE: Format-number problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 3 Feb 2005 12:02:39 -0000
xslt format number problem
This would work if you defined "/" in your xsl:decimal-format as a
grouping-separator. (It might, anyway: format-number() in XSLT 1.0 is badly
under-specified).

A more orthodox approach would be a combination of substring() and concat().

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Varley, Roger [mailto:Roger.Varley@xxxxxxxxxxxxxx] 
> Sent: 03 February 2005 11:55
> To: Xsl-List (E-mail)
> Subject:  Format-number problem
> 
> Hi
> 
> My XML data contains an element whose contents represent a 
> date in YYYYMMDD format. I'm trying to get this to produce 
> YYYY/MM/DD in the output. I've tried 
> 
> <xsl:value-of 
> select="format-number(//E1EDK03[IDDAT='012']/DATUM,'####/##/##')"/>
> 
> where DATUM contains 20050115 but I get "20050115//" in the 
> output. I'm obviously misunderstanding how to use 
> format-number. Am I trying the right approach here?
> 
> Regards
> Roger
> 
> 
> ______________________________________________________________
> ____________
> This e-mail and the documents attached are confidential and intended 
> solely for the addressee; it may also be privileged. If you 
> receive this 
> e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos 
> Origin group 
> liability cannot be triggered for the message content. Although the 
> sender endeavours to maintain a computer virus-free network, 
> the sender 
> does not warrant that this transmission is virus-free and will not be 
> liable for any damages resulting from any virus transmitted.
> ______________________________________________________________
> ____________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.