xslt日期时间格式 [英] xslt date-time format
本文介绍了xslt日期时间格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有带有以下元素日期(20120807)和时间(165608)的xml文件
我需要合并这两个,并且在输出xml中的格式应为
2012-08-07T16:56:08
我如何在xslt中实现这一目标.
谢谢
i have xml file with these element date (20120807) and time (165608)
i need to concat these two and in the output xml the format should be
2012-08-07T16:56:08
how do i acheive this in xslt.
Thanks
推荐答案
在这里看看:
http://www.w3schools.com/xpath/xpath_functions.asp#datetime [ ^ ]
Take a look here :
http://www.w3schools.com/xpath/xpath_functions.asp#datetime[^]
这篇关于xslt日期时间格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文