Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 27th, 2005, 04:28 PM
Registered User
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using xs:time to generate time in desired format


I am trying to do the follg. using XSLT 1.0

My input document contains time in hhmmss(military time) format. I want my xslt to transform this into XML time, w/t respect UTC, as given below in the example: (I am guessing that xs:time should be able to identify the current timezone, for e.g. -5 or -4 for EST).

Does anyone know how to do this? (although, I can do this using string function, to concatenate a fixed offset, it will change by an hour during daylight savings time and this will cause error)

<?xml version="1.0" encoding="UTF-8"?>
<blocks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<?xml version="1.0" encoding="UTF-8"?>
<blocks xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


Similar Threads
Thread Thread Starter Forum Replies Last Post
date time format vb certified Pro VB 6 4 December 18th, 2009 08:16 AM
How to generate a crystal report at run time fozia_izhar .NET Framework 1.x 0 February 20th, 2007 02:34 AM
Time format MDM ASP.NET 2.0 Professional 2 July 12th, 2006 10:37 AM
Generate Time in Milliseconds with asp niravp Classic ASP Databases 1 May 5th, 2004 03:32 PM
Format Date Time ganesh15 PHP How-To 2 August 20th, 2003 05:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.