How to force XSLT to stop using scientific notation when displaying the results of numerical operations?

I have some XSLT that does some magic for integer database identifiers. Corresponding code snippet

      <xsl:variable name="releaseId" select="@ID + $contentOffsetId"/>
      <xsl:attribute name="OLD_ID"> <xsl:value-of select="@ID" /> </xsl:attribute>
      <xsl:attribute name="RELEASE_ID"> <xsl:value-of select="$releaseId" />      

Unfortunately, the conclusion from this is as follows:

<ALBUM.RELEASE_LOCALE LOCALE_CODE="en_US" OLD_ID="6597512" RELEASE_ID="6.597513E6">

This result is useless to me since I cannot use the scientific record as input for my DB import utility. I tried a number of functions in declaring variables, such as string(@ID + $contentOffsetId), but nothing achieved the desired results.

XSL is run using Saxon 8.7.

+3
source share
1 answer
+6

Source: https://habr.com/ru/post/1727560/


All Articles