Geert Josten wrote:

Not the quickest solution I guess...

:-P

Probably not the most efficient... but lest someone think I'm writing those &#xyz; entity references by hand, I'm not.
They're produced when the files are read in by the xinclude transformer (<xi:include parse="text" ...>).
Lars


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>&#0;&#0;&#1;...</dummy></source:fragment>
</source:write>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to