Not the quickest solution I guess...
:-P
Lars Huttar wrote:
Lars Huttar wrote:
Geert Josten wrote:
Hi,
Doesn't it? It allows you to specify the serializer. I've never used it, but I've seen the code there. By default it uses the XML serializer, you just need to specify another.
Am I missing something?
Regards, Upayavira
Hmmm it _is_ possible with the SourceWritingTransformer, but only because XSL-FO is XML and there is a serializer that can convert the FO XML to PDF, which can be directly written to disk by this transformer.
But what if you want to write something that isn't derived from XML? You can't just insert binary data into the <source:fragment> element and make it be written to some file...
Actually you can; I have been doing that for some time (see my post of today, "how to copy a binary file"). I wrap a <dummy> element around the file contents.
I should add that I also use serializer="text". In short, the input to the transformer looks like: <source:write (namespace declarations) serializer="text">
<source:source>context:/mount/gem3/enterprise/sMicrosoft/format/gem.ico</source:source>
<source:fragment><dummy>��...</dummy></source:fragment> </source:write>
It may not be legal XML if it contains non-Unicode characters, but it works.
It's not pretty though...
Lars
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- [EMAIL PROTECTED] IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
