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 Style Sheets

Post new topic  Reply to topic
 XML Style Sheets « View previous topic :: View next topic » 
Author Message
Chuck831
PostPosted: Thu Aug 12, 2004 9:51 am    Post subject: XML Style Sheets Reply with quote

Apprentice

Joined: 23 Dec 2002
Posts: 28

How would I go about including the following XML stylesheet information in my output message?

<?xml-stylesheet type="text/xsl" href="C:/stylesheetxml/applyt1.xsl"?>

I have no trouble putting the version in by coding the following:

SET OutputRoot.XML.(XML.XmlDecl)='';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version)='1.0';

My output message needs to look like this:

Code:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="C:/stylesheetxml/applyt1.xsl"?>
<DATA>
  <CompanyID>123</CompanyID>
  <Location>Richmond</Location>
  <TaxRate>5.25</TaxRate>
</DATA>


I can't find any documentation on including the stylesheet information. Any help would be greatly appreciated.

Thanks.
Back to top
View user's profile Send private message
JT
PostPosted: Thu Aug 12, 2004 10:16 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

I think the IA0G supportpac is what you're looking for.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 12, 2004 10:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think he just wants
Code:
Set OutputRoot.XML.(XML.ProcessingInstruction)"xml-stylesheet".(XML.Attrib)type='text/xsl';
Set OutputRoot.XML.(XML.ProcessingInstruction)"xml-stylesheet".(XML.Attrib)href='C:/stylesheetxml/applytl.xsl';

or something similar.

Unless he wants to enforce the stylesheet or make use of the stylesheet, rather than just provide the stylesheet information.
_________________
I am *not* the model of the modern major general.
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 Style Sheets
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.