xsl-list
[Top] [All Lists]

problem running EXSL extension with Xalan

2003-07-28 03:34:11
Hello ,
i am using xalan-j_2_5_D1.. i am trying to run the
EXSL date:difference function in a XSL stylesheet.. i
have downloaded the EXSL extensions from www.exsl.org
and have placed them in proper path..

my xml file is
---------------
<?xml version="1.0" encoding="UTF-8"?>
<dates>
  <date>2003-07-25</date>
  <date>2003-07-23</date>
</dates>

and the xsl is below
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:date="http://exslt.org/dates-and-times";
extension-element-prefixes="date">
  <xsl:import href="date.xsl"/>
  <xsl:output method="text" version="1.0"
encoding="UTF-8" indent="yes"/>
  <xsl:template match="dates">
   <xsl:variable name="diff">
     <xsl:call-template name="date:difference">
       <xsl:with-param name="start" select="date[1]"/>
       <xsl:with-param name="end" select="date[2]"/>
     </xsl:call-template>
   </xsl:variable> 
   <xsl:value-of select="$diff"/> 
  </xsl:template>
</xsl:stylesheet>

when i apply the above XSL to XML , i get the error
"XSLT Error(java.lang.StackOverflowError)"

As suggested here
http://xml.apache.org/xalan-j/faq.html#faq-N102B9

i have tried by increasing the stack size to 1MB, but
still i am getting this error.. 

is it possible to run the above XSL with Xalan 2.5.1..
?

Regards,
Mukul


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>