cancel
Showing results for 
Search instead for 
Did you mean: 

Indent text MessageTransformBean

Former Member
0 Kudos

hi

my scenarion is JMS -> XI -> MAIL

I used content conversion to transform the XML to flat file

does any body know if I can change the indiation text from left-right to right to left with one of the paramters in the content conversion?

thx,shai

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

I found this:

http://www.ietf.org/rfc/rfc1556.txt

Maybe you can apply:

Content-type: text/plain; charset=ISO-8859-8-i

Regards

Stefan

stefan_grube
Active Contributor
0 Kudos

Another try:

Content-Type: text/plain; charset=UTF-8; format=flowed

Former Member
0 Kudos

nice try but it doesnt work

it changes the text to signs

Former Member
0 Kudos

still on left side

stefan_grube
Active Contributor
0 Kudos

Could you send any hebrew email (plain text) to: stefan.sdn@googlemail.com

Former Member
0 Kudos

sent

stefan_grube
Active Contributor
0 Kudos

The mail has wrong encoding (signs) and is aligned left.

So I cannot see what is necessary to have the mail correct.

The only idea I have left is creating an HTML mail, if that be OK for this process.

Add this string at begin:

<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD><BODY <b>dir="rtl"</b>>

and this string at end of the message

</BODY></HTML>

Set the content type of the mail to text/html.

Regards

Stefan

stefan_grube
Active Contributor
0 Kudos

But you have to add a &lt;br&gt; at each end of the line as well.

Message was edited by:

Stefan Grube

henrique_pinto
Active Contributor
0 Kudos

Dude,

blank spaces outside <Text> tags aren't and shouldn't be treated as text spaces and therefore are not considered in the mail.

If u do want indentation in the mail text, put spaces inside the <Text> tags's content.

Regards,

Henrique.

Former Member
0 Kudos

ill try it tommorw and tell u

stefan_grube
Active Contributor
0 Kudos

I could see the text alignement and the characters correctly, when I set my mail settings to "hebrew". But in this case the english text in the mail as well was aligned right.

How does it look like when you receive a mail? Is the alignment of hebrew and english correct?

Regards

Stefan

Former Member
0 Kudos

I dont have english text here only hebrew

I sent u an example mail in hebrew which u can c the text is indented to left

our mal system is lotus notes , and the default definition is right to left , still the text in the left to right

stefan_grube
Active Contributor
0 Kudos

Shai,

I didn't want a mail which is wrong, send me a mail in hebrew, where the alignment is correct. I want to check the email headers.

And it should be plain text, the last one was HTML. Just create a mail from your mail account and send it to me.

Regards

Stefan

Former Member
0 Kudos

send u onther 1

stefan_grube
Active Contributor
0 Kudos

Here a blog for creating HTML with XSLT:

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

Former Member
0 Kudos

hi stefan

can u give me example to xslt program which will convert my xml to html?

shai

stefan_grube
Active Contributor
0 Kudos

Try this:


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="UTF-8" indent="no" /> 
  <xsl:template match="/">
    &lt;html&gt;
      <head /> 
      <body dir="rtl">
        <xsl:for-each select="//Text">
          <xsl:value-of select="." disable-output-escaping="yes" /> 
          &lt;br /&gt; 
        </xsl:for-each>
      </body>
    &lt;/html&gt;
  </xsl:template>
</xsl:stylesheet>

This should work with the XML which you have provided. You need no content conversion when you use XSLT.

Regards

Stefan

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Are the strings inside the XML in correct order?

Then why not just reverse the tags in the XML?

If not, then I don't see any solution in standard.

Regards

Stefan

Former Member
0 Kudos

yes they are in correct order

but the xml indination is left to right

Is there a way using user defined function or paramter in content conversion?

stefan_grube
Active Contributor
0 Kudos

Can you exactly describe, what is not correct?

You want to send a mail, how does it look like at the moment?

Are the words correct, but the texts is not aligned to the right?

Regards

Stefan

Former Member
0 Kudos

this is the XML

<?xml version="1.0" encoding="utf-8"?>

<FI_Hashav_Mail_MT>

*********<Line>

******************<Text>&#1488;&#1508;&#1497;</Text>

******************<Text>&#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;</Text>

******************<Text>&#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;</Text>

*********</Line>

</FI_Hashav_Mail_MT>

this is the MAIL

&#1488;&#1508;&#1497;

&#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;

&#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;

should b

*********************************************************************************&#1488;&#1508;&#1497;

                                                                                                                                                  • &#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;

                                                                                                                                                  • &#1513;&#1497; &#1512;&#1493;&#1494;&#1504;&#1510;&#1493;&#1497;&#1490;

( * are equal to spaces)