I'm pretty sure this is not a CLASSPATH issue, I've got lots of code and
the classes are all in the same directories (according to their package
names). Just in case, I added this line to my program:
I don't get a "Class Not Found" Exception which I would expect if this was
a classpath issue.
Looking at the source to com.icl.saxon.charcode.CharacterSetFactory, i see
that it's just looking for a object that is an instanceof
PluggableCharacterSet. I don't see what could be wrong there.
I'm not running from the command line: I'm calling Saxon through the JAXP
(TrAX) interface. I'm not sure what the equivalent of "-t" is in this
case. Is there some what to turn tracing on when calling through JAXP?
The only other thing I can see is some possibility that the Loader is
somehow screwing up, but since it mostly does a Class.forName(), I can't
see exactly why.
Any suggestions most welcome.
<mhkay@.... To: <David_Benua@...>, <saxon-help@...>
Subject: RE: [saxon] International Characters and EUC support
> I created a class com.percussion.saxonadaptor.UTF16CharacterSet that
> implements com.icl.saxon.charcode.PluggableCharacterSet.
> (BTW Saxon6.4.3\doc\extensibility.html says
> com.icl.saxon.output.PluggableCharacterSet, but there's no
> such interface,
> I presume it should really be
Thanks, now fixed.
> In my main style sheet tester, I've got:
> and in my stylesheet I have:
> <xsl:output method="xml" encoding="UTF16" />
> When I run it I get the message:
> Encoding UTF16 is not supported: using UTF8
> What am I missing?
The most likely explanation is that the
com.percussion.saxonadaptor.UTF16CharacterSet class is not on the
If it can't be loaded, or is not an instance of the correct class, then
Saxon will revert to UTF8 without any failure message (which is probably
a very smart idea...)
Running with the -t option will at least confirm that it's trying to load