Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[solved] Preserving Space in an XSL Number using format-number

spilgrimApr 8 2008 — edited Apr 17 2008

Hi All,

I'm producing plain text using an XSLT and want to preserve the spacing around numbers in order lines. I'm current putting in leading zeros with :

<xsl:value-of select='format-number(UnitPrice,"0000.00")'/>

Here's an example of the output:

ISBN            Qty Price Discount VAT% VAT Amt Value
978-0-7487-8252 001 0065.00 00000.00 17.5 0011.38 0065.00

How could I remove the leading zeros and keep the spacing?

Thanks,
Steve

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2008
Added on Apr 8 2008
3 comments
9,092 views