ePublisher Platform XSLT Extensions
double Convert (double sourceValue, string sourceUnits, string targetUnits)
 
Convert a measurement from one set of units to another.
Parameters:
sourceValue
Source value.
sourceUnits
Source units.
targetUnits
Target units.
Returns:
A number.
Convert 2in to centimeters (cm).
<xsl:variable name="VarCentimeters" select="wwunits:Convert(wwunits:NumericPrefix('2in'), wwunits:UnitsSuffix('2in'), 'cm')" />