|
From: Bruce M. <ma...@xb...> - 2002-04-04 01:40:08
|
The translator xbean is simply wrapping an xslt engine at runtime. If you are
using the dependent jars distributed with xbeans, then it is xalan version 2.2.
Perhaps the undesirable behavior you are experiencing is a "feature" of that
version of xalan. I do not know.
At runtime, the translator bean simply calls:
Transformer transformer = tFactory.newTransformer(
new StreamSource(tf));
transformer.transform(
new javax.xml.transform.dom.DOMSource(sourceDocument),
domResult);
You might try using a different xalan version or a different xslt engine. Any
xslt engine that supports the javax.xml.transform.* interface (TRAX) should
work.
We would appreciate knowing if you find something about the usage of the xslt
engine by the translator bean that is causing the problem. If you find
something, we'll change the invocation code appropriately for the next release.
Thanks,
Bruce
Bill Kaufman wrote:
> When I use the TranslatorBean to apply my xsl stylesheet the
> expected empty html tags are not generated (say <hr> instead of <hr/>) even
> though <xsl:output method="html" /> was specified. (I need this so I can
> display html in a JEditorPane, which supports only html3.2 - it doesn't like
> the slash).
>
> Also it seems I cannot suppress the <?xml...?> header in the usual
> way.
>
> Help will be very much appreciated.
> TIA,
>
> Bill
>
> _______________________________________________
> xbeans-interest mailing list
> xbe...@li...
> https://lists.sourceforge.net/lists/listinfo/xbeans-interest
|