[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: difference between an integer and current-dateTime
Am 28.03.2020 um 01:23 schrieb Mukul Gandhi gandhi.mukul@xxxxxxxxx:
I've tried following XSLT stylesheet upto now, based on your suggestions,B xmlns:xs="http://www.w3.org/2001/XMLSchema" -B B B B B B B B B B B B B exclude-result-prefixes="xs" B B B B B B B B B B B B B version="3.0"> $epochDateTime" as="xs:dayTimeDuration"/> B B B B <xs:value-of select="$diffDTduration"/> B B </xsl:template> When I posted my suggestions I had only tried them with XPath/XQuery e.g. let $epochDateTime := xs:dateTime('1970-01-01T00:00:00Z') + xs:dayTimeDuration('PT' || 1585039138 || 'S') return current-dateTime() - $epochDateTime in oXygen's XPath/XQuery builder window. I am currently not sure why your code using those expressions in XSLT doesn't output anything, I will try to investigate and let you know.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|