Project

Profile

Help

Bug #2651

closed

select="xs:string(xs:dateTime('9999-12-31T23:59:59.9999999'))" gives => '9999-12-31T23:59:59.:"

Added by stewart menday over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
XPath conformance
Sprint/Milestone:
Start date:
2016-02-26
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Platforms:

Description

Running the following xslq;

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">

<xsl:output method="xml" encoding="UTF-8" byte-order-mark="no" indent="yes"/>

<xsl:template match="/">

<xsl:sequence select="xs:string(xs:dateTime('9999-12-31T23:59:59.9999999'))"/>

</xsl:template>

</xsl:stylesheet>

Results in;

9999-12-31T23:59:59.:

Notice the : at the end of the string

If we remove the last 9 from the datetime or change it to a value below 9 results in the following;

9999-12-31T23:59:59.999999

Cheers

Stew

Please register to edit this issue

Also available in: Atom PDF