Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2013, 04:25 AM
Authorized User
 
Join Date: Nov 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Java enum in XSLT

Hi,

I would like to use Java enum defined values in my XLST, but none of my callings are correct.

Could you put me an example usage of:

MyEnum {one, tow, three}

in XSLT, please?

Thank you all!
 
Old April 23rd, 2013, 04:56 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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
 
Old April 23rd, 2013, 05:15 AM
Authorized User
 
Join Date: Nov 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you very much Michael :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Generics and XSLT WilliamYou XSLT 2 December 21st, 2012 06:19 AM
Using XSLT and JAVA trinkets XSLT 4 April 4th, 2007 02:13 PM
XSLT and JAVA bonekrusher XSLT 3 August 9th, 2006 07:38 PM
XSLT with Java Hind XSLT 1 May 24th, 2006 04:18 AM
binding java from xslt mountainbiker XSLT 2 February 19th, 2004 11:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.