Author |
Message
|
waugh |
Posted: Mon May 10, 2004 11:02 am Post subject: XML Transformation Node-choosing a stylesheet dynamically |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
The XML Transformation Node worked fine if i do it from node configuration properties. How do we do that dynamically?
Documentation says you need to set value to ComXmlxsltStylesheet element in OutputLocalEnvironment tree using a compute node before this node...
say the file name is in my incoming XML in an elemnt called myxsl.
<myxsl>hello.xsl</myxsl>
how do i assign this value to the ComXmlxslstylesheet element in outputenvironment tree? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 10, 2004 11:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Have you considered using the 'set' statement? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
waugh |
Posted: Mon May 10, 2004 11:19 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
Yes, i tried two versions of it...
SET OutputLocalEnvironment.ComIbmXslXmltStylesheetname = 'C:\XSLT\hello.xsl';
and
SET OutputLocalEnvironment.ComIbmXslXmltStylesheetname = 'hello.xsl';
+ Setting the Stylesheet Directory in properties of the Node...
both of them didnt work....
Is that how its supposed to set? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 10, 2004 11:23 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Did you configure the compute node to pass the local environment? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
waugh |
Posted: Mon May 10, 2004 11:36 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
creeeeeeeeeeeeech!!!
that is what it was!!!
Thanks a lot jeff |
|
Back to top |
|
 |
|