This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Round trip: Binary -> XML -> Binary
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 25 Jun 2002 08:38:06 +0100
- Subject: RE: [xsl] Round trip: Binary -> XML -> Binary
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I would now like to be able to round-trip the file back to
> its original
> binary state. My thought is to use an output method of 'text'
> and emit
> base64-encoded data which can then be decoded by a base64
> utility back to
> the original binary.
>
> Is there a way to emit binary directly? I'm not aware of any
> but wanted to
> ask just in case.
Most of the Java XSLT processors allow you to feed the result tree
directly into a user-written SAX ContentHandler, from which you can
serialize it any way you like.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list