Ruminations on NoSQL, XRX, XQuery, Semantics, STEM, Arduino, Internet-of-Things (IoT) and empowering the non-programmer.
Monday, February 26, 2007
Doing Zero Fill with XSLT 2.0
I was scratching my head, trying to find a simple way to do a zero fill padding with XSLT and I could not find it in my Michael Kay XPath 2.0 book. It turns out he put in in the XSLT 2.0 book. I am not sure how the index missed it.
Anyway, searching for "Zero Fill XPath" turned up nothing on Google. Here is how it works. Just use the following: