This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Xalan Java Extension questions.
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Xalan Java Extension questions.
- From: Christian Mallwitz <c dot mallwitz at intershop dot de>
- Date: Tue, 17 Apr 2001 09:25:56 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
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