W. Eliot Kimber wrote:

This seems simple enough. Now the question I have is: how best to tell the NodeSortRecord class about my Collator implementation?
I have modified the XSLTC code to add a CollatorFactory abstract class that has a getCollator() method, which is called by NodeSortRecord. getCollator takes language and country arguments (as for java.util.Locator's constructor). The default implementation simply constructs a Locale and then does Collator.getInstance(locale) to construct a locale-specific collator.

I use a property (org.apache.xml.xsltc.COLLATOR_FACTORY) to specify the class name of my own CollatorFactory implementation on the java command line, That class then goes through my configuration mechanism to get a collator for a particular locale.

This all works great.

What I haven't been able to figure out yet is how to get the lang and country attributes from xsl:sort to the NodeSortRecord's init() method in order to be able to construct the appropriate Collator object. Can someone help me unravel the many levels of indirection here?

Thanks,

Eliot
--
W. Eliot Kimber, [EMAIL PROTECTED]
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX 78752 Phone: 512.656.4139



Reply via email to