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

Re: Scripting in XSL

Subject: Re: Scripting in XSL
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 22 Jul 2004 21:51:56 +0200
xalan java.util.date
Ajit Sawant wrote:
I want to do some scripting in xsl using Java. (and this is my first time!!!)

I don't think you actually "do scripting" using Java in Xalan. Xalan allows calls to static Java methods as extension functions in XPath expressions. See http://xml.apache.org/xalan-j/extensions.html#java-namespace and the following example.

<xalan:script language="javaclass" src="xalan:java.util.Date" />
I doubt this will work, ever.

<xsl:variable name="date" select="Date:toString(Date:new())" xmlns:Date="xalan:java.util.Date" />
<DOB>$date</DOB>
            ^^^^^
Likely another mistake, you probably want
 <DOB><xsl:value-of select="$date"/></DOB>


J.Pietschmann


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.