OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Arithmetic with XML/XSL



Sent this out Monday but it seems it was lost in the ether...

-----Original Message-----
From:	Ward, Richard 
Sent:	Monday, June 11, 2001 4:12 PM
To:	'xml-dev@lists.xml.org'
Subject:	Arithmetic with XML/XSL

Potentially very stupid question:

How do I go about adding/subtracting etc. the values of two XML elements via
XSL?

For example, I have the following:

	<Publication>
		<PubDate>07 May 2001</PubDate>
		<PubTime>10:08 PM</PubTime>
		<PubOffset>-5</PubOffset>
	</Publication>

I'd like to be able to take the PubTime and PubOffset to display the time in
PubTime, GMT or local time of the viewer.  So, using the above values, I'd
like to be able to convert the time to GMT based on the offset, which in
this case would be 2:08 AM.

Many thanks,

- rich


CREDIT | FIRST
SUISSE | BOSTON
Phone:	(212) 325.5254
Fax:	(212) 325.5166
e-mail: Richard.Ward@csfb.com



This message is for the named person's use only.  It may contain 
confidential, proprietary or legally privileged information.  No 
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.  Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state 
them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is 
indicative only, is subject to change and does not constitute an offer to 
deal at any price quoted.
Any reference to the terms of executed transactions should be treated as 
preliminary only and subject to our formal written confirmation.