Author |
Message
|
mictian |
Posted: Fri Dec 04, 2009 1:14 pm Post subject: XML Mapping editor in Message Broker 7 |
|
|
Newbie
Joined: 04 Dec 2009 Posts: 3
|
Hi,
I'm new to Message broker and XML mapping. I'm trying to use Message broker 7 XML mapping tool to generate XSLT. I have both source XSD and target XSD. What I want to achive is to use mapping editor in Broker 7 to generate XSLT which will then be used in transformation node. My questions are:
1) Is there good tutorial to show me how to do the complicated mappings to generate XSLT for Message broker 7?
2) Are there any Free alternative tools(easy to learn to do complicated mapping) to generate XSLT?
Thanks in Advance |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 04, 2009 1:30 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I assume you're using the Mapping node. It's not specifically an XML mapping node - it can map any message tree, regardless of the original format of the data.
The Mapping node does not generate XSLT - or any other code which can be reused outside of message broker. You can do XSLT transformations within message broker, though - check out the XSLTransform node. |
|
Back to top |
|
 |
mictian |
Posted: Fri Dec 04, 2009 1:41 pm Post subject: |
|
|
Newbie
Joined: 04 Dec 2009 Posts: 3
|
Thanks kimbert for your prompt reply.
I'm going to use XSLT transformation node which requires XSLT supplied not mapping node. That's why I'm trying to use borker mapping eidtor to generate XSL. The reason to use transformation node instead of mapping node is because I want to reuse the XSLT later for other application.
Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 04, 2009 2:03 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Maybe I'm being dim-witted, but this is the part that I don't understand:
Quote: |
That's why I'm trying to use borker mapping eidtor to generate XSL |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 04, 2009 2:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mictian wrote: |
That's why I'm trying to use borker mapping eidtor to generate XSL. |
AFAIK you can't.
mictian wrote: |
The reason to use transformation node instead of mapping node is because I want to reuse the XSLT later for other application. |
If you've got WMB on site, why have another application do transformations? Note that using a mapping node is more efficient than an XSLT node. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 04, 2009 2:34 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Note that using a mapping node is more efficient than an XSLT node. |
Not always true. It depends whether the XSLTransform node is operating on the unchanged input message and/or generating the final output bitstream.
As always in these 'which transformation option should I use' debates, the answer is 'the correct one for your requirements'. |
|
Back to top |
|
 |
mictian |
Posted: Fri Dec 04, 2009 2:37 pm Post subject: |
|
|
Newbie
Joined: 04 Dec 2009 Posts: 3
|
Thanks all for your help.
Ahthough mapping node is more efficient, I need this XSLT for other application as well(data pump....). Since I already have WMB so I try to use WMB's XML mapping function to map source and target XSD to generate XSLT. So back to my original question;
1)Is there any good tutorial/exmaple to show me how to use WMB 7 to generate XSLT by using XML mapping editor for complicated mappingboth source and target? The logic behand (source and target xsd) mapping is not just drag connection, more logic involved so I need some good examples/tutorials for that.
2)Is ther any alternative free tool(used to do complicate mapping) to generate XSLT from source and target XSD?
3)Any other suggestions?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 04, 2009 2:37 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kimbert wrote: |
Quote: |
Note that using a mapping node is more efficient than an XSLT node. |
Not always true. It depends whether the XSLTransform node is operating on the unchanged input message and/or generating the final output bitstream.
As always in these 'which transformation option should I use' debates, the answer is 'the correct one for your requirements'. |
I stand corrected.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 04, 2009 3:25 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kimbert wrote: |
I assume you're using the Mapping node. It's not specifically an XML mapping node - it can map any message tree, regardless of the original format of the data.
The Mapping node does not generate XSLT - or any other code which can be reused outside of message broker. You can do XSLT transformations within message broker, though - check out the XSLTransform node. |
To elaborate on Kimbert's answer to your question
AFAIK you cannot generate XSLT using the message broker toolkit.
You can USE XSLT that you ALREADY have in the XSLTransform node.
You will have to look to other tools for generating an XSLT document.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
seeknee |
Posted: Mon May 03, 2010 8:34 pm Post subject: Not sure if this has already been answered |
|
|
 Apprentice
Joined: 08 Aug 2002 Posts: 41 Location: Melbourne, Australia
|
Yes it is possible to use the xml mapping editor to generate xslt in broker 7
File/New/Other/XML/XML Mapping
Do your mapping then press generate XSLT script
Hopefully this helps
Cheers _________________ IBM Certified Specialist MQSeries
IBM Certified Specialist WebSphere MQ Integrator
IBM Certified Solution Designer WebSphere Business Integration Message Broker V5
"Good judgement comes from experience, and experience comes from poor judgement" |
|
Back to top |
|
 |
mqjeff |
Posted: Tue May 04, 2010 2:01 am Post subject: Re: Not sure if this has already been answered |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
seeknee wrote: |
Yes it is possible to use the xml mapping editor to generate xslt in broker 7
File/New/Other/XML/XML Mapping
Do your mapping then press generate XSLT script |
Excellent tip!
But to the rest of the viewers, this is *NOT* the Mapping node mapping editor. It's a separate editor supplied with the RAD components that Toolkit is based on. |
|
Back to top |
|
 |
n1ghtrain |
Posted: Tue May 11, 2010 11:31 pm Post subject: |
|
|
 Apprentice
Joined: 23 Mar 2006 Posts: 48 Location: Bangalore
|
Sorry for reopening this..
I remember using the XML Mapping editor for generating XSL in a WMB 6.1 version toolkit and also in WID and RAD. But somehow this editor is missing in the WMB 7 version that I am having. (In the "Select Wizard" window under "XML" i only have DTD, XML, XML Schema, XSL now.)
Quote: |
WebSphere Message Broker Toolkit - Message Broker
Version: 7.0.0
Build id: 7.0.0-20091028_2100 |
any of the folks here know more about this. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed May 12, 2010 4:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
File->New->Other
Expand the XML Folder.
Choose XML Map.
Works for me on 7.0 toolkit.
Version: 7.0.0
Build id: 7.0.0-IFix-20100308_1835
If you don't see XML Map as an option, then go to Window->Preferences->General->Capabilities and enable all capabilities. Then try again. |
|
Back to top |
|
 |
|