yes,
there are many posts like this in the exslt archive, to use a template only import that specific template, using the overarching imports causes a problem with most XSLT processors.
cheers, Jim Fuller
> -----Original Message-----
> From: Mukul Gandhi [mailto:mukulw3@xxxxxxxxx]
> Sent: 29 July 2003 05:11
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: problem running EXSL extension with Xalan
>
>
> i was able to run the EXSLT extension with Xalan.. In
> EXSLT date.xsl file , lot of files are imported. i
> deleted all imports except
> <import
> href="functions/difference/date.difference.xsl"/>
>
> which i needed. this made the transorm run
> successfully.. the original date.xsl file probably
> caused deep recursion, which caused StackOverflow
> error..
>
> Regards,
> Mukul
>
>
> --- Mukul Gandhi <mukulw3@xxxxxxxxx> wrote:
> > 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
> >
>
>
> __________________________________
> 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
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|