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 August 8th, 2009, 07:27 PM
Authorized User
 
Join Date: Nov 2007
Posts: 33
Thanks: 2
Thanked 0 Times in 0 Posts
Question pass parameter ArrayList java to XSLT 2.0

Hi,

Is it possible to pass a java ArrayList to xslt parameter?

Thanks,
 
Old August 8th, 2009, 09:55 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The rules for passing parameters to an XSLT processor depend entirely on the processor you are using. The rules for Saxon are given here:

http://www.saxonica.com/documentatio...on-result.html

(Although this is written to describe conversion of extension function results, it also points out "The same rules are used in converting a Java object supplied as a parameter to a stylesheet or query.")

See the paragraph starting "If the returned value is an instance of the Java class java.util.List, ..."
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 -- To Do List -- import java.util.ArrayList? SteveOliverC BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 April 3rd, 2009 02:50 PM
how to pass a control parameter and process a return parameter in sqldatasource jayshankar ASP.NET 2.0 Basics 1 January 1st, 2009 10:18 AM
Pass a parameter from java servlet to xsl anithapeeris XSLT 3 June 20th, 2007 01:57 AM
Pass parameter from XSLT to ASP.NET kwilliams XSLT 3 August 17th, 2005 11:56 AM





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