| Author | Message | 
		
		  | swarna.prava.mohanty | 
			  
				|  Posted: Mon May 14, 2012 2:00 am    Post subject: XSL Transform Node and WSRR |   |  | 
		
		  | Novice
 
 
 Joined: 29 Aug 2010Posts: 15
 
 
 | 
			  
				| Hi, I have retrieved the style sheet from WSRR using Registry Lookup node and thus its saved in LocalEnvironment.ServiceRegistry.Entity.content. Now using this stylesheet I want to transform my input message using XSLTranform Node. How to assign the style sheet to the XSL Transaform node. Please suggest. I am assigning the stylepath as below:
 
 OutputLocalEnvironment.XSL.stylesheetPath = LocalEnvironment.ServiceRegistry.Entity.content. Am I wrong, how to pass the whole style sheet to XSL tranform node so that transformation can be done.
 
 MQInputNode -->Compute-->RegistryLookupNode(to retrieve styleSheet from WSRR)-->Compute-->XSLTranformNode--MQOutput Node
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | lancelotlinc | 
			  
				|  Posted: Mon May 14, 2012 6:11 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 4941
 Location: Bloomington, IL USA
 
 | 
			  
				| When you attended the required training class, what did the instructor tell you about style sheet importing? Hint: its in the right-click context menu. _________________
 http://leanpub.com/IIB_Tips_and_Tricks
 Save $20: Coupon Code: MQSERIES_READER
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | smdavies99 | 
			  
				|  Posted: Mon May 14, 2012 6:43 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 10 Feb 2003Posts: 6076
 Location: Somewhere over the Rainbow this side of Never-never land.
 
 | 
			  
				| 
   
	| lancelotlinc wrote: |  
	| When you attended the required training class, what did the instructor tell you about style sheet importing? Hint: its in the right-click context menu. |  
 Ah Yes. But My guess is that he wants to do it at runtime using WSRR as a repository for the Stylesheet much like you can with WSDL's etc.
 
 Basically,
 1) Hey WSRR, give me the latest version of the 'BashLanceOverTheHead' stylesheet
 2) Here XLST node, transform this lot of 'if you had attended the class' rubbish into something meaningful like War and Peace using this stylesheet.
 
 (Only joking Te-He)
 _________________
 WMQ User since 1999
 MQSI/WBI/WMB/'Thingy' User since 2002
 Linux user since 1995
 
 Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | mlpaucara | 
			  
				|  Posted: Fri Aug 03, 2012 3:05 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 09 Feb 2010Posts: 1
 
 
 | 
			  
				| swarna 
 I was able to accomplish what you mention,  I obtain the XSL from WSRR  and then use it for XSLTransformation, it works fine, but my problem is when I want to use the EndpointLookup node. It seems there is a aditional configuration in WSRR.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Mon Sep 23, 2013 6:13 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| HI swarna, 
 Could you please explain how you did that. I am getting Style sheet not found error in message broker .
 
 Thanks
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | smdavies99 | 
			  
				|  Posted: Mon Sep 23, 2013 6:26 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 10 Feb 2003Posts: 6076
 Location: Somewhere over the Rainbow this side of Never-never land.
 
 | 
			  
				| It is very likely that swarma does not read this forum any more so you may be wasting your time asking him for an answer. _________________
 WMQ User since 1999
 MQSI/WBI/WMB/'Thingy' User since 2002
 Linux user since 1995
 
 Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Mon Sep 23, 2013 6:35 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| could any one help me on this 
 1. Style sheet is uploaded in the WSRR
 2. I have used the registry lookup node and the XSL is extracted but the content is of type Blob.
 3. I have used the local environment variable to grab the style sheet name and the content .
 
 but when I still I am getting the error stylesheet not found ,here is my code below
 
 OutputlocalEnviorment.XSL.StyleSheetName=InputlocalEnvironment.ServiceRegistry.Entity.Name
 
 OutputlocalEnviorment.XSL.StyleSheetPath=InputlocalEnvironment.ServiceRegistry.Entity.content
 
 Any pointer ?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Mon Sep 23, 2013 10:21 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| 
   
	| mlpaucara wrote: |  
	| swarna 
 I was able to accomplish what you mention,  I obtain the XSL from WSRR  and then use it for XSLTransformation, it works fine, but my problem is when I want to use the EndpointLookup node. It seems there is a aditional configuration in WSRR.
 |  
 Could you please give me pointer , i have facing the same problem.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | smdavies99 | 
			  
				|  Posted: Mon Sep 23, 2013 10:33 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 10 Feb 2003Posts: 6076
 Location: Somewhere over the Rainbow this side of Never-never land.
 
 | 
			  
				| This forum is manned by volunteers. We have our day jobs to do as well as answer posts here. 
 If you are really in need of an answer then raise a PMR. After all, you are paying IBM for support so use it.
 _________________
 WMQ User since 1999
 MQSI/WBI/WMB/'Thingy' User since 2002
 Linux user since 1995
 
 Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Mon Sep 23, 2013 10:51 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| Hi, 
 Just want to verify that if have missed something ?
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | lancelotlinc | 
			  
				|  Posted: Mon Sep 23, 2013 10:55 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 4941
 Location: Bloomington, IL USA
 
 | 
			  
				| 
   
	| dhimanha wrote: |  
	| Hi, 
 Just want to verify that if have missed something ?
 |  
 Do you have a coach on your site? Do you have a mentor ? How are we supposed to know if you missed something if we cannot see your workspace ?
 _________________
 http://leanpub.com/IIB_Tips_and_Tricks
 Save $20: Coupon Code: MQSERIES_READER
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Mon Sep 23, 2013 10:58 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| Actually  from  my side , I have completed as per the info center. 
 I am getting error , "stylesheet not found" but I am passing name and content from the WSRR to the XSL transform node.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | lancelotlinc | 
			  
				|  Posted: Mon Sep 23, 2013 11:36 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 22 Mar 2010Posts: 4941
 Location: Bloomington, IL USA
 
 | 
			  
				| 
   
	| dhimanha wrote: |  
	| Actually  from  my side , I have completed as per the info center. 
 I am getting error , "stylesheet not found" but I am passing name and content from the WSRR to the XSL transform node.
 |  
 Do you have a coach on your site? Do you have a mentor ? How are we supposed to know if you missed something if we cannot see your workspace ?
 _________________
 http://leanpub.com/IIB_Tips_and_Tricks
 Save $20: Coupon Code: MQSERIES_READER
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | aggarwal.intouch | 
			  
				|  Posted: Mon Sep 23, 2013 11:19 pm    Post subject: |   |  | 
		
		  |  Acolyte
 
 
 Joined: 30 May 2011Posts: 56
 Location: India
 
 | 
			  
				| Try using the below line in your code: 
 OutputLocalEnvironment.ComIbmXslXmltStylesheetname = LocalEnvironment.ServiceRegistry.Entity.content
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dhimanha | 
			  
				|  Posted: Tue Sep 24, 2013 3:14 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 02 Jan 2012Posts: 10
 
 
 | 
			  
				| Thanks I will try this and let you know the outcomes |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |