ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing Current TimeStamp from XSLT in WMB

Post new topic  Reply to topic
 Accessing Current TimeStamp from XSLT in WMB « View previous topic :: View next topic » 
Author Message
Vgowda
PostPosted: Tue Feb 14, 2012 1:47 am    Post subject: Accessing Current TimeStamp from XSLT in WMB Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

Hi,
Is there a way to access CURRENT_TIMESTAMP in XSL Transform node? I am creating a message in XSL, in that i need to populate CURRENT_TIMESTAMP for one of the field.

Any thoughts on this would be helpful.
_________________
Regards
Vinay
Back to top
View user's profile Send private message
Vgowda
PostPosted: Tue Feb 14, 2012 2:00 am    Post subject: Reply with quote

Acolyte

Joined: 11 Dec 2007
Posts: 61
Location: Bengaluru

I found some solution by googling for the same to change the XSL file. Below is the link for the same, Is there anything we can do from WMB?

http://www.coderanch.com/t/129977/XML/Display-current-date-time-xsl
_________________
Regards
Vinay
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Feb 14, 2012 2:01 am    Post subject: Re: Accessing Current TimeStamp from XSLT in WMB Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Vgowda wrote:
Hi,
Is there a way to access CURRENT_TIMESTAMP in XSL Transform node? I am creating a message in XSL, in that i need to populate CURRENT_TIMESTAMP for one of the field.

Any thoughts on this would be helpful.


No and Yes.

I remember that I used to put an ESQL node behind the XSLT... but one day a collegue showed me something, where you can use XSLT 2.0 functions or some xslt utilites that you need to bring in or something, where this also works directly in XSLT

Ah, I remember... it works only in Broker (and not in XML-Spy . So not perfectly easy to develop.

I don't remember exactly - have fun
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Feb 14, 2012 2:04 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

Vgowda wrote:
I found some solution by googling for the same to change the XSL file. Below is the link for the same, Is there anything we can do from WMB?

http://www.coderanch.com/t/129977/XML/Display-current-date-time-xsl


I think you are on a good track.

Though the Broker-Version I used didn't support XSLT 2.0, so you need to use the "extension package" (which you install on Broker runtime, and then... this wouldn't work in XML-Spy).

Andy Pieper writes "as I understand it, XSLT 2.0 support may arrive sometime after WMB v8 GAs in December – I’m not sure that you can make it work in v7, certainly not using the XMLTransform node."
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
goffinf
PostPosted: Thu Feb 16, 2012 11:54 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Yep you have 3 options :-

1. Use XSLT2
2. Use the EXSLT library
3. Pass it into your XSLT as a parameter.

Obvious (1) is not possible at present (it's one of the reasons we use a custom node for XSLT).

Fraser.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Thu Feb 16, 2012 5:08 pm    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

goffinf wrote:
Yep you have 3 options :-

1. Use XSLT2
2. Use the EXSLT library
3. Pass it into your XSLT as a parameter.

Obvious (1) is not possible at present (it's one of the reasons we use a custom node for XSLT).

Fraser.


Added to "3.": Or fix after the XSLT-transform (though passing in is probably better)

Option 4. Use ESQL (only) instead of XSLT.
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Accessing Current TimeStamp from XSLT in WMB
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.