I have a simple issue. I am calculating the latest version from the list of revisions.
<xforms:instance id="history">
<metaData>
<latestVersion></latestVersion>
<History>
<Revision>
<Date>01/02/2011</Date>
<Comments>Mino Issues Fixed</Comments>
<Version>0.4</Version>
</Revision>
<Revision>
<Date>17/02/2011</Date>
<Comments>Minor issues fixed</Comments>
<Version>2.1</Version>
</Revision>
<Revision>
<Date>22/03/2011</Date>
<Comments>Cosmetic Defects Fixed</Comments>
<Version>2.2</Version>
</Revision>
<Revision>
<Date>06/04/2011</Date>
<Comments>minor issues fixed</Comments>
<Version>2.3</Version>
</Revision>
<Revision>
<Date>20/04/2011</Date>
<Comments>minor issues fixed</Comments>
<Version>2.4</Version>
</Revision>
<Revision>
<Date>22/04/2011</Date>
<Comments>Small build</Comments>
<Version>3.0</Version>
</Revision>
</History>
</metaData>
</xforms:instance>
<xforms:bind nodeset="instance('history')/latestVersion"
type="xforms:decimal"
calculate="max(instance('history')/History/Revision/Version/number())" />
When i output latestVersion, it shows as 3.00
. If i remove the type
in bind definition it shows as 3
. How can i show it as 3.0