Hello,
Is that the only error message?
[Saxon-B 9.0.0.6] Collation
http://saxon.sf.net/collation?class=CzechCollation has not been defined
I created a jar file based on your CzechCollation class and I get the
above error and the following error:
[Saxon-B 9.0.0.6] Failed to instantiate class CzechCollation - missing
chars (=,;<&): < Z,z <Ž,
That means Saxon 9B loads the class CzechCollation but it is not a
correct implementation of a collation because some characters are
missing. When the class CzechCollation cannot be loaded you get a
different error:
[Saxon-B 9.0.0.6] Failed to load CzechCollation - CzechCollation
For easy testing of your collation class in Oxygen you should set the
directory where CzechCollation.class is located or a jar file containing
CzechCollation.class as an extension of the transformation scenario (the
Extensions button of the dialog for editing a scenario):
http://www.oxygenxml.com/doc/ug-oxygen/defining-new-transformation-scenario.html
This avoids restarting Oxygen for each modification and recompilation of
the class CzechCollation and it does not depend on the location of the
class file/jar file (it does not have to be in the directory
[Oxygen-install-dir]/lib). If the transformation error is "Failed to
load CzechCollation" then the class CzechCollation could not be loaded
because it was not set correctly as an extension of the transformation
scenario. If the error is "Failed to instantiate class CzechCollation -
missing chars ..." then the class was loaded but it is not a correct
implementation of a collation so you need to modify and recompile it.
Regards,
Sorin
Mark Wilson wrote:
I have read in the archive that to add my own collator to Oxygen, I must
drop the jar file in the oxygen lib folder. I have done this, and still
get the same error message:
F [Saxon-B 9.0.0.6] Collation
http://saxon.sf.net/collation?class=CzechCollation
<wlmailhtml:{853AF0FC-D328-4143-915B-D96A9FC916AF}mid://00000074/!x-usc:http://saxon.sf.net/collation?class=CzechCollation>
has not been defined.
The line from my XSLT file is: <xsl:sort select="Author"
collation="http://saxon.sf.net/collation?class=CzechCollation"/>
The jar tf command tell me the jar file contains the following manifest
(I know very little about java):
META-INF
META-INF/MANIFEST.MF
CzechCollation.class
However, when I click on the jar , I get the error message: "failed to
load Main-Class manifest attribute from ..." I assume this happens
because the jar does not contain an application. Anyway, The
CzechCollation.java file follows (Substantially shortened).
Thanks,
Mark
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user