Thanks to Ito Kazumitsu for the quick response and the informative web
There's just one more question about the Properties. I know that the
documentation says to use the System.Properties to set new encodings, but
looking at the source, it would seem to me that we can also set encoding
properties with javax.xml.transform.Transformer.setOutputProperties().
I know that I can use this method to override the <xsl:output encoding
="EUC-JP"/>, but my question is can I set the "encoding.EUC-JP" key to a
value of "com.mycompany.saxon-encoding.EUC_JP" and have the
Perhaps I'm confusing the different properties objects within the system.
Can anybody tell me definitively if this approach will work?
From: Michael Kay <mhkay@ic...> - 2001-09-05 15:54:32
> There's just one more question about the Properties. I know that the
> documentation says to use the System.Properties to set new
> encodings, but
> looking at the source, it would seem to me that we can also
> set encoding
> properties with javax.xml.transform.Transformer.setOutputProperties().
You can use javax.xml.transform.Transformer.setOutputProperties() to
indicate that a particular transformation is to use EUC-JP encoding; this is
equivalent to specifying encoding="EUC-JP" in xsl:output, and is useful when
you want to decide the output encoding at run-time.
However, before Saxon can use EUC-JP encoding, it must have access to a
PluggableCharacterSet that provides the necessary information about EUC-JP.
This means you need to write a subclass of PluggableCharacterSet and set the
system property encoding.EUC-JP to the name of this class.