Author |
Message
|
team |
Posted: Thu Jan 04, 2007 2:33 am Post subject: Trees accessable in mapping node or XML transformation node |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Is it possible to access the Environment or Local Environment Tree in a mapping node or a XML transformation node ?
Platform-
WINDOWS , WMB V6.0, MW 6.0 |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jan 04, 2007 2:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Why would the platform change what you can do in a particular node?
Is it possible that you're asking a question taken from a certification exam?
http://www.mqseries.net/phpBB2/viewtopic.php?t=19492 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
team |
Posted: Thu Jan 04, 2007 4:08 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
No. not for any cerification.
I'am trying out a practical example.
It is required to do a mapping. I'am in process of finalising on which node to be used - mapping node or XML transformation node.
There are some values that come in the Environment tree which need to be populated to the output.
I'am aware that this can be done using a compute node before or after the mapping / XML transformation Node.
Just wanted to confirm if we can access the same in the mapping / XML transformation node itself.
I tried doing the same but I get an error saying :
Invalid expression semantic. Expression sequence "ENVIRONMENT.DATA" has valid syntax, but it's meaning is unsupported by the mapping editor. An operator in the given expression has an unsupported value or argument. The value or argument is not a valid expression type.
[/i] |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jan 04, 2007 4:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
team |
Posted: Thu Jan 04, 2007 6:01 am Post subject: Environment Variables in XSLT |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 108
|
Hi,
The links provide information only to set the stylesheet name in the localEnvironment. However, is there a way for a user defined Environment variable(set in a previous compute node) be used in the XSLT, to generate the output XML.
Thanks in advance,
Team |
|
Back to top |
|
 |
jfluitsm |
Posted: Sun Jan 07, 2007 8:21 am Post subject: |
|
|
Disciple
Joined: 24 Feb 2002 Posts: 160 Location: The Netherlands
|
The XMLTramsformation node only transforms the (XML) message body, so the Environment is not in scope.
The mapping node in V6 can change every tree. Don't forget to specify in de node properties what tree should be written (conform the compute node). In the mapping you can add/remove headers. _________________ Jan Fluitsma
IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6 |
|
Back to top |
|
 |
|