remove leading zeros

I have the following input XML

                  <TravelRS SequenceNmbr="1">
                                          <NameNumber Number="01.01"/>

I have the following code
<xsl:variable name="OTSeatId" select="Envelope/Body/TravelRS/CustomerInfos/PersonName/Extensions/NameNumber/@Number" />

 I'd like to remove leading zeros, before and after decimal.
So 01.01 becomes 1.1

Please assist.
Who is Participating?
Geert BormansConnect With a Mentor Information ArchitectCommented:
<xsl:value-of select="concat(number(substring-before($OTSeatId, '.')), '.', number(substring-after($OTSeatId, '.')))"/>

by splitting in two parts and calling the number function on each parts, the zeroes will go away
badtz7229Author Commented:
: Gertone
thx so much. that worked.
Geert BormansInformation ArchitectCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.