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

  • Home
  • SEARCH
  • 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 9213909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:51:29+00:00 2026-06-18T01:51:29+00:00

What the difference between xs:decimal and number in xslt 2.0 ?

  • 0

What the difference between xs:decimal and number in xslt 2.0 ?

  • 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-06-18T01:51:31+00:00Added an answer on June 18, 2026 at 1:51 am

    In XSLT and XPath 1.0 there was just a single number type, double precision floating point numbers. XSLT and XPath 2.0 has a richer type system taken from the W3C XML schema language (and partly extending that type system).

    xs:decimal is both a type and a constructor function in XSLT and XPath 2.0 so you can use it where you specify a sequence type, like in the as attribute (e.g. <xsl:param name="input" as="xs:decimal"/>) as well as to convert a value to an xs:decimal value in any XPath expression e.g. <xsl:variable name="input" select="xs:decimal(//foo)"/>.

    The [number][2] function exists since XSLT and XPath 1.0 and converts its argument to a double precision floating point number, represented in the XSLT and XPath 2.0 type system by the type xs:double e.g. <xsl:variable name="input" select="number(//foo)"/>. There is also a constructor function xs:double in XPath and XSLT 2.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any performance difference between decimal(10,0) unsigned type and int(10) unsigned type?
So I (think I) understand the difference between Float, Double, and Decimal , but
Write a program that reads an decimal number between 0 and 2G and displays
Hi guys I need to get the difference between two dates, as a decimal.
I was writing a function for conversion between Decimal and Binary base number systems
I need a method in C that the random number between decimal 65-90 [
Is there any practical difference between the .net decimal values 1m and 1.0000m? The
What is the difference between decimal , float and double in .NET? When would
If someone could explain to me the difference between Decimal and decimal in C#
Can anyone help me in understanding to know the difference between decimal and decimal?

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.