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 » Java call from xsl throws compilation error in WMB

Post new topic  Reply to topic
 Java call from xsl throws compilation error in WMB « View previous topic :: View next topic » 
Author Message
christopher j
PostPosted: Thu Feb 17, 2011 7:35 am    Post subject: Java call from xsl throws compilation error in WMB Reply with quote

Novice

Joined: 01 Jan 2010
Posts: 20

Hi,
Is there any limitation in WMB to use java call in the xsl?
I used the below xsl and able to run in tool kit xsl editor.When I try the same in WMB ,it throws compilation error.



<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://xml.apache.org/xalan/java/java.util.Date"
xmlns:java_lang="http://xml.apache.org/xalan/java/java.lang"
exclude-result-prefixes="date java_lang">
<xsl:template match="/">
<!-- create Date object with calculated parameter -->
<xsl:variable name="dateObject"
select="date:new(
java_lang:Math.max(1027695561000,1038695561000)
)"/>
<OrderId>
<xsl:attribute name="ExternalNumber">
<xsl:value-of select="$dateObject"/>
</xsl:attribute>
</OrderId>
</xsl:template>
</xsl:stylesheet>
Back to top
View user's profile Send private message
christopher j
PostPosted: Thu Feb 17, 2011 8:41 am    Post subject: Reply with quote

Novice

Joined: 01 Jan 2010
Posts: 20

If i change the cache level to 0 then I am able to run the xsl in broker without any exception.Is there any way to achieve this without changing the cache level as cache level '0' may hit the performance.
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 » Java call from xsl throws compilation error 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.