|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML stylesheets |
« View previous topic :: View next topic » |
Author |
Message
|
DELLIPIZ |
Posted: Wed Oct 08, 2003 7:11 am Post subject: XML stylesheets |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Hi Everyone,
I am using WMQI to create one XML document from another. However, I need to replace the DOCTYPE information that is on my input XML with XML stylesheet information on the output XML.
For example, I need to remove
<!DOCTYPE FinancingReq PUBLIC "FinancingQuoteReq.dtd" "FinancingQuoteReq.dtd">
and add <?xml-stylesheet href="file:///C:/FinancingReq.xsl" type="text/xsl"?>
Any suggestions on how to do that? Nothing I am trying seems to be working.
Thanks!
-Lori |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 08, 2003 7:32 am Post subject: Re: XML stylesheets |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
DELLIPIZ wrote: |
Any suggestions on how to do that? Nothing I am trying seems to be working.
|
What are you trying?
The Programming Guide has an appendix that lists all the constants you can use to access different types of XML fields from within ESQL. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
DELLIPIZ |
Posted: Wed Oct 08, 2003 8:09 am Post subject: |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Hi again,
Well, below are the instructions I followed, however, I don't have the XML transformation node, so maybe that is why it didn't work. I did my coding in the Compute node.
I did look in the programming guide, but I didn't see anything.
Thanks!
-Lori
----------------------------------------------------------------------------
To specify the XSL stylesheet in the MQSI Node message environment:
Add a Compute node to the message flow. The Compute node is an IBMPrimitive as well.
Open the Properties of the Compute node
Select the Advanced tab and choosing Local Environment And Message as the Compute Mode.
Click on the first tab – Compute 1, in the middle of the panel, then click on Copy entire message.
On the ESQL tab, which is also found in the middle of the panel, on the next line after SET OutputRoot=InputRoot, add the following lines to the text box:
SET OutputLocalEnvironment=InputLocalEnvironment;
SET OutputLocalEnvironment.ComIbmXslMqsiStylesheetname= '<stylesheet_name>';
The <stylesheet_name> can include the full path to the stylesheet. Once again, if the stylesheet name is not fully qualified, then the value located in the XML Node attribute properties of "Stylesheet Directory" will be used as the directory location for the stylesheet. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|