RE: [xsl] CDATA Handling

Subject: RE: [xsl] CDATA Handling
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 6 Jan 2009 10:51:09 -0000
Base64 encoding does not use any characters that are special characters in
XML, therefore enclosing it in CDATA is completely pointless.

Michael Kay 

> -----Original Message-----
> From: J. S. Rawat [mailto:jrawat@xxxxxxxxxxxxxx] 
> Sent: 06 January 2009 10:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] CDATA Handling
> At 03:49 PM 1/6/2009, Michael Kay wrote:
> >I guess the definition of professionalism is that if you're a 
> >professional, you advise the client when he gets the requirements 
> >wrong, and if you're not, you build whatever rubbish he asks for.
> Basically client wants xml from HTML input and we provide 
> them xml along with image files. He asks us to embed the 
> images inside the xml instead of sending the images files 
> separately and they prefer to use base 64 representation for 
> the same. We have a generalize xml application where we put 
> image as <img.embed>base 64 representation of the 
> image</img.embed> in the form of tag. Now we need to 
> transform this tag (img.embed) into <![CDATA[base 64 
> representation of the image]]>. They have their own 
> application where they use php to generate the image once again.
> Thanks
> ...JSR 

Current Thread