exslt

Convert 31-DEC-2016 to 2016-12-31

北慕城南 提交于 2019-11-29 17:38:21
I want to convert the 31-DEC-2016 i.e., dd-mmm-yyyy to yyyy-mm-dd in the XSLT using format-dateTime function but the output is not as expected.Can anyone help on this? <ns1:QuoteDate> <xsl:value-of select='concat(xp20:format-dateTime(/Quote/QuoteHeader/QuoteDate,"[Y0001]-[M01]-[D01]"),"T00:00:00")'/> </ns1:QuoteDate> I want to get the value for this particular thing.31-DEC-2016 : This is the input and i have to transform over here in the code Once that is converted, How to concat the the value T00:00:00 to the date?? You cannot use the format-dateTime() function on a string that is not a valid

How can make an XSLT Javascript extension function return a node-set?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 14:09:27
Is there a simple way to have an extension function in XSLT 1.0 written in javascript return a node-set? I could create a new java class for this, but I would rather just put some code in the script itself. When this can be done in another scripting language supported by all or most XSLT processors (VB script? Groovy? C#?), then that's OK too of course. I have the following simple script: <msxsl:script language="JScript" implements-prefix="custom"> function xml (input) { var x = input.split(";"); return x.toString(); } </msxsl:script> which returns a string, and hence no problem calling the

How can make an XSLT Javascript extension function return a node-set?

☆樱花仙子☆ 提交于 2019-11-27 08:17:01
问题 Is there a simple way to have an extension function in XSLT 1.0 written in javascript return a node-set? I could create a new java class for this, but I would rather just put some code in the script itself. When this can be done in another scripting language supported by all or most XSLT processors (VB script? Groovy? C#?), then that's OK too of course. I have the following simple script: <msxsl:script language="JScript" implements-prefix="custom"> function xml (input) { var x = input.split("