[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Passing Document/NodeList to xsl as parameter

Subject: Passing Document/NodeList to xsl as parameter
From: "Tim" <xsl@xxxxxxxxxxxxxx>
Date: 25 Jun 2001 11:37:33 -0000
xsl dom parameter passing
I've found in the faq's ( 
http://www.dpawson.co.uk/xsl/sect2/N5982.html#d172e147 ) a reference to 
passing a NodeList as a parameter.

I've tried it both as a org.w3c.dom.Document and org.w3c.dom.NodeList 
with the same result:

.....snip....
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:xalan="http://xml.apache.org/xalan" exclude-result-
prefixes="xalan">
.................
<xsl:variable name="keys" select="xalan:evaluate($keywords)"/>
<xsl:for-each select="$keys//*">
	keyword = <xsl:value-of select="."/>
</xsl:for-each>
.....snip.....

$keywords is the parameter containing the nodelist.  It looks fine in 
Java, I can loop through the nodes printing the contents, but in XSL it 
displays nothing, $keys//* returns nothing.

Please send details of anything I've missed.

Thanks,
Tim.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.