Subject: RE: Xalan Java Extension questions.
From: Christian Mallwitz <c.mallwitz@xxxxxxxxxxxx>
Date: Tue, 17 Apr 2001 09:25:56 +0200
|
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 |
- Trade Marks, (continued)
- Christian Mallwitz - Tue, 17 Apr 2001 03:26:26 -0400 (EDT) <=
|
|