|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xalan Java TransformerException?
I am getting the following exception:
javax.xml.transform.TransformerException: For extension function, could not find method java.lang.String.format([ExpressionContext,] #UNKNOWN (java.util.Date)) For the following XSL fragment : <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java" extension-element-prefixes="java" exclude-result-prefixes="java"> <!-- formatter is type java.text.SimpleDateFormat --> <xsl:param name="formatter"/> <!-- request is type java.Util.HashMap --> <xsl:param name="requestMap"/> <xsl:variable name="StartTime" select="java:get($requestMap,'AnalyticsStartTime')"/> <xsl:variable name="AnalyticsStartTime" select="java:format($formatter, $StartTime)"/>
When I resolve format() completely as follows: <xsl:variable name="AnalyticsStartTime" select="java:java.text.SimpleDateFormat.format($formatter, $StartTime)"/> The exception is: For extension function, could not find method static java.text.SimpleDateFormat.format([ExpressionContext,] #STRING, #UNKNOWN (java.util.Date)). 2. How can I fix this? Thanks a lot for your help and suggestions. Sudhir _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








