Conventions for calling from XSLT to Java (or vice versa) depend on which XSLT processor you are using.
Saxon doesn't provide any way of passing ENUM values.
I don't know about Xalan, but since there has been no new development on Xalan in the last few years, and ENUMs are a relatively late addition to Java, I suspect the same is true.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|