xsl-list
[Top] [All Lists]

Re: Variables

2004-07-13 02:06:08


What i want is to have a variable to use outside the <xsl:for-each> loop, as a
attribute

      <xsl:if test="$pages!=''">
        <Event method="nextPage" target="btnProceed" type="ActionHandler">
            <xsl:attribute name="next"><xsl:value-of select="$pages"
/></xsl:attribute>
            <xsl:attribute name="params"><xsl:value-of select="$params"
/></xsl:attribute>
        </Event>
      </xsl:if>

as a concatenation of all the strings i've found.

Quoting David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:



well for that, you want the for-each inside the variable declaration as
you showed in your other piece of code. What was the problem with that?

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:
http://www.star.net.uk
________________________________________________________________________


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