Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » XML » XSLT » Downloads
 
Add your own
alternative version

Number To Word Conversion Program using XSLT

, 6 Mar 2002
Number To Word Conversion Program using XSLT
numtoword.zip
NumToWord.xsl
Number To Word Conversion Program using XSLT
--------------------------------------------
This is an attempt to write an XSLT generic code to convert a given number to words.  This program uses a substantial number of
XSLT tags and also XSLT functions showing the power of XSLT programming.  Any parser that supports XSLT 1.0 or higher can execute
this program.  The whole program has not been optimized and is only of an experimental value and cannot be used for any commercial
applications.  

Some main features of the program are:

1. Usage of multiple namespaces.
2. Self referencing using XSLT function - document().
3. Embedded XML Data which behaves like static arrays in conventional programming languages.
4. Reusable template programming.

How to execute this program:

1. If you have "msxsl.exe" (can be found on www.microsoft.com), at the MS-DOS command prompt, type:
          msxsl <xmlfile> NumToWord.xsl Number=100355.67

                where <xmlfile> is any well-formed XML
                      Number is the parameter name

2. If you have "saxon.exe", at the MS-DOS command prompt, type:
          saxon <xmlfile> NumToWord.xsl Number=10055.67

                where <xmlfile> is any well-formed XML
                      Number is the parameter name


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Anand Bolangadi
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150129.1 | Last Updated 7 Mar 2002
Article Copyright 2002 by Anand Bolangadi
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid