I'm using the date:seconds function (from the EXSLT date and time functions) to obtain the number of seconds in a duration string, but I'm getting incorrect results.
For example, for the following xslt code, I would expect the result to be 85904. Instead, I'm getting a result 1000 times greater: 85904000.
<xsl:value-of select="date:seconds('PT23H51M44S')"/>
I'm using Xslt version 1.0. Here is what is at the top of my file --
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:date="
Can anyone help?
For example, for the following xslt code, I would expect the result to be 85904. Instead, I'm getting a result 1000 times greater: 85904000.
<xsl:value-of select="date:seconds('PT23H51M44S')"/>
I'm using Xslt version 1.0. Here is what is at the top of my file --
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:date="
Can anyone help?