This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Xalan Java Extension questions.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]