ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML stylesheets

Post new topic  Reply to topic
 XML stylesheets « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Wed Oct 08, 2003 7:11 am    Post subject: XML stylesheets Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 08, 2003 7:32 am    Post subject: Re: XML stylesheets Reply with quote

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
View user's profile Send private message
DELLIPIZ
PostPosted: Wed Oct 08, 2003 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML stylesheets
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.