Re: [xsl] Variables

Subject: Re: [xsl] Variables
From: xptm@xxxxxxx
Date: Tue, 13 Jul 2004 13:37:42 +0100
Well, looking at your example, from a conceptual point of view, i understand
what it should do, but since i'm no xslt specialist i couldn't put it to
I tryed several changes but it won't work, as far as i can see the
<xsl:for-each select="document('')/*/x:x"> loop never do anything...

However, doesen't this example be as much resources-consuming as the other
with variables? Afterall the number of loops in here is the same as the
of vars...

Well, i think i'll stick with declaring all variables, as there are only four
the moment, and think about this if the number get's too bigger.


Citando David Carlisle <davidc@xxxxxxxxx>:

> are you sure that you need any variables at all?
> You could use something like the following setup which is variable free...
> <xsl:stylesheet ...
>  xmlns:x="anything"
> >
>   <x:x  name="pages" elem="FormZoom"/>
>   <x:x name="params" elem="ParametroZoom"/>
> ...
> <xsl:template ...>
>  <Event method="nextPage" target="btnProceed" type="ActionHandler">
> <xsl:for-each select="document('')/*/x:x">
> <xsl:attribute name="{@name}">
>        <xsl:for-each
>   <xsl:value-of select="."/>
>   <xsl:text>:</xsl:text>
> </xsl:for-each>
> </xsl:attribute>
> </xsl:for-each>
> </Event>
> ....
> David
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> ________________________________________________________________________

O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim!
Clique em:

Current Thread