[xslt] Re: Passing parameters within <xsl:apply-templates>



On Mon, 18 Aug 2003 10:26:18 +0800 (HKT)
"William M. Brack" <wbrack@mmm.com.hk> wrote:

<skipped/>

> mode="images".  This causes templ2 to be applied, but templ2
> does not have a param, and when it does a further
> apply-templates no param is is specified.  So, when temp1
> finally is used, there is no parameter set, and it correctly
> uses a null value.
> 
> It's a little difficult for me to guess what you are trying to
> accomplish with this stylesheet, but you can probably fix your
> problem by changing templ2 to be:
> 
> <xsl:template match="*|@*|text()" mode="images">
>   <xsl:param name="dir"/>
>   <xsl:apply-templates mode="images">
>     <xsl:with-param name="dir" select="$dir"/>
>   </xsl:apply-templates>
> </xsl:template>
> 
> Also please note that there was a somewhat different problem
> with parameters which I recently fixed
> (http://bugzilla.gnome.org/show_bug.cgi?id=114563) which also
> affects this, so please use the CVS version of libxslt until
> the next release.

I change stylesheet as you suggested and rebuild libxslt-1.0.32
with revision 1.226 of transform.c. Now it works fine :)

Thank you very much!

<skipped/>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]