xsl-list
[Top] [All Lists]

Re: format number mask

2003-01-09 02:28:52
S Woodside wrote:


On Wednesday, January 8, 2003, at 10:30  AM, Jeff Kenton wrote:

Michael Kay wrote:

Can i use format-number to display EAN-8 / EAN-13 barcodes with format-number

1122222333334 should be displayed as 11.22222.33333.4
and
11222223 should be displayed as 11.22222.3

No, I don't think you can. Grouping separators can only be included at
regular intervals.


The XSLT 2.0 WD appears to allow grouping separators in arbitrary positions, although this probably doesn't help the original poster right now.


Try using substrings function?


All the nice regex stuff in XSLT2 should help.


Tobi

--

Vim users               donate.
http://iccf-holland.org/donate.html

Web developers           check.
http://www.pinkjuice.com/check/


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>