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

RE: Xalan Java Extension questions.

Subject: RE: Xalan Java Extension questions.
From: Christian Mallwitz <c.mallwitz@xxxxxxxxxxxx>
Date: Tue, 17 Apr 2001 09:25:56 +0200
xalan java extension
Hi,

Although that is not quit what you asked for I do this in my XSLT (Xalan
1.2.2)

<xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:java="http://xml.apache.org/xslt/java"
     exclude-result-prefixes="java">

<xsl:param name="today" select="java:toString(java:java.util.Date.new())"/>

and use "today" where ever I need. I looked to me that you can call pretty
much any java method ...

One problem: I use the "today" parameter a couple of times and the runtime
of the transformation step  seems to be directly linked to how often I do
this. So I guess the select attribute is evaluated ever time and not just
once in the beginning ...

Bye
Christian
-- 
Christian Mallwitz INTERSHOP Communications Germany
Senior Software Engineer    phone: +49 3641 50 3453

 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.