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

xslt parameters used in custom function

Subject: xslt parameters used in custom function
From: Mihai Bucica <misu200@xxxxxxxxx>
Date: Thu, 29 Mar 2007 01:26:45 -0700 (PDT)
 xslt parameters used in custom function
Hello all,

 I have an XSLT parameter like:
 <xsl:param name="DateFormat">eeee</xsl:param>

 I'm trying to use this XSLT parameter as a parameter
to my custom class

                 <xsl:value-of     


select="java:x.y.z.convertDate(string(calculationPeriodDates/terminationDate/unadjustedDate),$DateFormat)"
                   
                 />

 But each time I've found out that in z.convertDate
the second parameter i received is '$DateFormat'

 Why is that not 'eeee' (or whatever)?

 I've also tried somenthing like {$DateFormat} or
string($DateFormat) but it doesn't work.

It works to output the param to the result.It's just
that I can't pass the xslt parameter as a parameter to
my custom class. 

I'm using Xalan-Java Version 2.7.0 and Java 1.5

Thanks,
Valentin


 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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-2011 All Rights Reserved.