xsl-list
[Top] [All Lists]

RE: [xsl] BASE64 Encoded Content REPLACEMENT

2006-11-13 13:08:24
Saxon has an extension function to decode Base64-encoded UTF8-encoded
character strings: see

http://www.saxonica.com/documentation/extensions/functions/base64binarytostr
ing.html

Michael Kay
http://www.saxonica.com/


-----Original Message-----
From: Senthilkumaravelan Krishnanatham [mailto:senthil(_at_)apple(_dot_)com] 
Sent: 13 November 2006 19:31
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Senthilkumaravelan Krishnanatham
Subject: Re: [xsl] BASE64 Encoded Content REPLACEMENT

Hi,
The Content name like subject ,text and html are base64 
encoded to maintain the well- formness of the HTML template 
for the receiving system.
So we have come up with the [[]] for replacement content.

For the readability ,I have given the value as it with out 
encoding it.I have provided the comment the same.

Sending system does want to change the way they send it. My program   
should transform the content and send the replaced content as 
mail to my customers.
Hope I am clear.

Thanks,
Senthil

On Nov 13, 2006, at 11:17 AM, Michael Kay wrote:

(1) It would be much better to use XML markup rather than markup of 
your own invention such as [[...]].

(2) If you must use your own markup, then it will be easier 
to analyze 
it using XSLT 2.0. You need to make clear whether you need 
a 1.0 or a 
2.0 solution

(3) I see no base64 content - I don't understand this part of your 
requirement.

Michael Kay
http://www.saxonica.com/


-----Original Message-----
From: Senthilkumaravelan Krishnanatham 
[mailto:senthil(_at_)apple(_dot_)com]
Sent: 13 November 2006 18:54
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Senthilkumaravelan Krishnanatham
Subject: [xsl] BASE64 Encoded Content REPLACEMENT

Hi All,
I have the following structure in my XML and i need to 
translate the 
following object into

Input content
<?xml version="1.0" encoding="UTF-8"?> <broadcast>
   <content_vars>
    <content name="subject"><html>Hello [[BUYERS_NAME]]</html> 
</content><!--BASE 64 encoded-->
    <content name="text">Hello [[BUYERS_NAME]]</content><!--
encoded->
   </content_vars>

           <ORDER_FEED>
<ORDER>
<ORDER_HEADER>
<BUYERS_NAME>Senthil</BUYERS_NAME>
<WEB_ORDER_NUMBER>W12345<WEB_ORDER_NUMBER>
</ORDER_HEADER>
<!--Line Items-->
</ORDER>
</ORDER_FEED>
</broadcast>


<?xml version="1.0" encoding="UTF-8"?> <htmlbody> 
<html>Hello Senthil 
</html> </htmlbody> <htmlbody> <textbody> Hello Senthil 
</textbody >


Could you please help me in decoding  the base64 encode 
and replace 
the variable with the associated enclosed content.
I have gone through Mukul website and I am still strugging for the 
decoding of BASE64 content and replace the [[]]
  content with the value in it.

Any eye opener suggestion are welcome.

Thanks in advance.



--~------------------------------------------------------------------
XSL-List info and archive:  
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>