On 09/04/2010 19:50, Suresh wrote:
I have some content in base64 format in a text file. How can I embed
the base64 content into xml file.
For example :
base64 text file:
------------------------
RGVwbG95bWVudFx0ZW1wXE1vZGlmaW
That appears to be missing a couple of == at the end to decode to
Deployment\temp\Modifi
If you know that the text encoded is valid XML character data then your
system may have an extension function to decode it
http://www.saxonica.com/documentation/extensions/functions/base64binarytostring.html
(or it wouldn't be too hard to write the decoder in xslt) but in general
base64 can encode binary data that includes byte sequences not legal in
XML text encodings so in that case you'd have to decide what to do (the
usual way of encoding such things in xml is to base64 encode them....
Required output in XML File:
-----------------------------------------
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:request
xmlns:dp="http://www.datapower.com/schemas/management">
<dp:file> CONTENT FROM BASE64 TEXT FILE</dp:file>
</dp:request>
</env:Body>
</env:Envelope>
How can I write XSLT?
Thanks.
--~------------------------------------------------------------------
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>
--~--
________________________________________________________________________
This e-mail has been scanned for all viruses by Star.
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--