Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Processing Dates through XSLT files

Steven NelliganDec 16 2020 — edited Dec 16 2020

orderxslt.txt (6.38 KB)orderxml.txt (2.24 KB)
I am new to xslt files. This is the first one i have written. I am trying to read in a datetime field, requestedDeliveryDate, from the xml file. Currently, I am trying to read it into the comment field. (debugging)
When I post the order I get a java null pointer.
If I hard code the value "2020-11-21 00:00:00.0 CST this works.
What am I doing wrong with the following command:
<xsl:value-of select="format-dateTime(MagentoOrderDetails/requestedDeliveryDate,'[Y0001]-[M01-[D01] [H01]:[m01]:[s01]'"/>
I am trying to format the date such that Java can read it as a datetime value.
Any help would be appreciate,
Steve Nelligan

Comments
Post Details
Added on Dec 16 2020
0 comments
287 views