Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 601837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:45:29+00:00 2026-05-13T16:45:29+00:00

I have this as input called $material_price: 2.40 1000 0.60 They run through <!–

  • 0

I have this as input called $material_price:

2.40
1000
0.60

They run through

<!-- setup currency rendering -->
<xsl:decimal-format name="dkk" decimal-separator="," grouping-separator="."/>
<xsl:value-of select="format-number($material_price, '#.###,00', 'dkk')"/>

Output is:

2,40
1.000,00
,60

How can I make changes to the xslt so last output is 0,60 and not ,60 (without the zero)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:45:30+00:00Added an answer on May 13, 2026 at 4:45 pm

    Like this:

    <xsl:value-of select="format-number($material_price, '#.##0,00', 'dkk')"/>
    

    The second parameter (picture string) is described as follows by the documentation.

    Required. Specifies the format pattern. Here are some of the characters used in the formatting pattern:

    • 0 (Digit)
    • (Digit, zero shows as absent)

    • . (The position of the decimal point Example: ###.##)
    • , (The group separator for thousands. Example: ###,###.##)
    • % (Displays the number as a percentage. Example: ##%)
    • ; (Pattern separator. The first pattern will be used for positive numbers and the second for negative numbers)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code here http://jsfiddle.net/RzBeM/65/ you will see two input fields called quantity.
I have an input button. I created for this input an attribute called multiplicateur
I have this code which sanitises user input on a variable called 'username': $username_clean
I have this select input in my form that I want to access via
i have this tag as input tag: <a href=controller.jsp?sid=127490C88DB5&R=35144 class=11-link-dkred-bold><b>Mr. John Q. Anderson&nbsp;&nbsp;&nbsp;MBA 1977
I have this code for splitting input list into its halves. It seems to
I have this code in Python inputted = input(Enter in something: ) print(Input is
I have this function that takes the input of a, runs a calculation and
I have this form which allows the input of any product quantity from 1-10:
I have this use case of an xml file with input like Input: <abc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.