using an xsl:fo in a transformer parameter

2004-01-18 Thread yahooschrott
Hi I'm trying to pass an already prepared fo: snippet (i.e. a valid fo:table section) to the transformation as a parameter but it seems to be ignored. this is what I do: (...) String fOTableSnipped = fo:table /fo:table; // this is prepared elsewhere StreamSource renderer = new

Re: using an xsl:fo in a transformer parameter

2004-01-18 Thread Jeremias Maerki
That's because you pass in the snippet as a String. During the XSLT stage the snippet will always remain text only. So when you do XSLT + FOP in one run, the output from the XSLT stage is passed to FOP via SAX events. And now, because your snippet is a String it gets passed to FOP as character