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 » CR/LF in XSL Transformation Node

Post new topic  Reply to topic
 CR/LF in XSL Transformation Node « View previous topic :: View next topic » 
Author Message
vmurali_au
PostPosted: Mon Jun 04, 2007 7:02 am    Post subject: CR/LF in XSL Transformation Node Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

I'm using XSL stylesheets to transform messages in XMLNS format to legacy text data. I'm using XMLTransformation Node in the WBIMB 6.0 for transformation.

I'm using the following code template to output CR/LF data to format the output message.

Code:
<xsl:template name="CRLF">
<xsl:text>&#xd;&#xa;</xsl:text>
</xsl:template>


And when i want to output CR/LF characters at a location in my output message text i just call the above template using the code

Code:
<xsl:call-template name="CRLF"/>


Also i've the following output header in my stylesheet.

Code:
<xsl:output method="text" omit-xml-declaration="yes"/>



The problem is that this template code doesnt work when it is used in the stylesheet. Also the message flows using these stylesheets are deployed in both Windows & Unix environment, and hence the CR/LF code has to work in both environments.

I've also included explicit line breaks in my stylesheet (by pressing "ENTER" key) for readability. These line-breaks get seen in the output when i run these stylesheets externally using Java test programs (using Xerces API). But when these same stylesheets are used in the Broker node even these explicit line-breaks dont get outputted.

In short, the problem is, "How to output CR/LF characters (both Windows & Unix) in the text output produced by the stylesheets deployed in WBIMB?. Has anyone tried it, and does anyone has a code snippet/template or suggestion?"

Thanks in advance.
Back to top
View user's profile Send private message
XZ
PostPosted: Tue Jun 05, 2007 1:03 am    Post subject: Reply with quote

Apprentice

Joined: 22 May 2006
Posts: 45
Location: IBM Hursley

When you say it is not working, do you mean not working on Unix only or both? What makes you think it is not working? I did your test on my Windows machine and checked the output message (binary data). I do see &#xd;&#xa;.
_________________
Regards,

-XZ
WMQI Development
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 » CR/LF in XSL Transformation Node
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.