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 » Passing string parameters to a Java method from xslt

Post new topic  Reply to topic
 Passing string parameters to a Java method from xslt « View previous topic :: View next topic » 
Author Message
svemula2
PostPosted: Mon Sep 23, 2013 6:03 pm    Post subject: Passing string parameters to a Java method from xslt Reply with quote

Newbie

Joined: 23 Sep 2013
Posts: 3

Hi All,

Can you please help me in passing two string parameters to a java method from XSLT.I am using an xslt node.

When I run the same i am able to invoke the method and getting the desired output.The same has been deployed in broker but its always giving the below error.Please help me.

avax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: The XSL processor reported a possibly fatal error.
Message: java.lang.IllegalArgumentException: name
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1017)
at com.ibm.xsl.exmlt.StylesheetCache.preprocessStylesheet(StylesheetCache.java:763)
at com.ibm.xsl.exmlt.StylesheetCache.getPreprocessedStylesheet(StylesheetCache.java:686)
at com.ibm.xsl.exmlt.StylesheetSelector.getTransformer(StylesheetSelector.java:372)
at com.ibm.xsl.exmlt.StylesheetSelector.performSelection(StylesheetSelector.java:681)
at com.ibm.xsl.exmlt.EnhancedXMLTransform.transformDocument(EnhancedXMLTransform.java:615)
at com.ibm.xsl.mqsi.XMLTransformData.transformData(XMLTransformData.java:555)
at com.ibm.xsl.mqsi.XMLTransformNode.evaluate(XMLTransformNode.java:965)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1480)

I am using the below code :

xmlns:java="http://xml.apache.org/xalan/java"
xmlns:test_my="java:ConfigurableServiceReader"

<xsl:element name="UserID">
<xsl:value-of select="test_my:getConfigurableService('abc','xyz')" > </xsl:value-of>
</xsl:element>
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Mon Sep 23, 2013 9:35 pm    Post subject: Re: Passing string parameters to a Java method from xslt Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

XSLT is neither very useful (for msg transformation/processing), nor maintainable, nor performant.

It's also not covered by (proper) requirements.

Broker gives you ESQL.

What is your motivation to use 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 » Passing string parameters to a Java method from xslt
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.