How to convert a negative decimal into hexadecimal using xslt 1
问题 I would like to convert negative and positive decimal into hexadecimal using xslt 1.0. There's already a topic related to this question here but the answer is given using xslt 2.0. I tried to reproduce the template using xslt 1.0 but it always returns an empty value. <xsl:template name="convertDecToHex"> <xsl:param name="pInt" /> <xsl:variable name="vMinusOneHex64"><xsl:number>18446744073709551615</xsl:number></xsl:variable> <xsl:variable name="vCompl"> <xsl:choose> <xsl:when test="$pInt > 0"