Search

A new XSLT utility, “Zero Digit” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Similar things can be done using the format-number() function. :-)

Darn! Why is it so many times when I think something has te be done with an extension or utility while XSLT already has some built-in functions for most of it?

Just curious: how would you convert a number like ‘7’ to ‘007’ or ‘13’ to ‘***13’ with the format-number()-function then?

format-number(7,'000')

You can’t use custom zero-characters with this function.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details