[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Using vars
Subject: Re: [xsl] Using vars From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 27 Jul 2004 14:18:22 +0100 |
I keep forgeting that when i hit reply the msg does not go to the list, but to the person that send the original msg... You have a broken mail agent that doesn't respect the header Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx which is on every message here. <xsl:variable name='pages'> <xsl:for-each select="$zoom-base"><xsl:value-of select="FormZoom" />:</xsl:for-each> </xsl:variable> That will give you the string value of each of the FormZoom elements all concatenated together with nothing separating them, is that really what you want? Your template is a lot more verbose than it need be: <Event method="tablemouse" type="MouseHandler" target="GridPanel"> <xsl:attribute name="next"><xsl:value-of select="$pages" /></xsl:attribute> <xsl:attribute name="params"><xsl:value-of select="$params" /></xsl:attribute> </Event> can be written <Event method="tablemouse" type="MouseHandler" target="GridPanel" next="{pages}" params="{$params}"/> <xsl:for-each select="/Formatos/Forms/Form/Grids/Grid"> <Event method="tablemouse" type="MouseHandler" <xsl:attribute name="target"><xsl:value-of select="@Nome" /></xsl:attribute> <xsl:attribute name="next"><xsl:value-of select="$pages" /></xsl:attribute> <xsl:attribute name="params"><xsl:value-of select="$params" /></xsl:attribute> </Event> <Event method="tablemouse" type="MouseHandler"> <xsl:attribute name="target"><xsl:value-of select="concat('SPane_',@Nome)" /></xsl:attribute> <xsl:attribute name="next"><xsl:value-of select="$pages" /></xsl:attribute> <xsl:attribute name="params"><xsl:value-of select="$params" /></xsl:attribute> </Event> </xsl:for-each> <Event method="nextPage" target="btnProceed" type="ActionHandler"> can be written <xsl:for-each select="/Formatos/Forms/Form/Grids/Grid"> <Event method="tablemouse" type="MouseHandler" target="{@Nome}" next="{$pages}" params="{$params}"/> <Event method="tablemouse" type="MouseHandler" target="{concat('SPane_',@Nome)}" next="{$pages}" params="{$params}"/> </xsl:for-each> 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Using vars, xptm | Thread | Re: [xsl] Using vars, David Carlisle |
RE: [xsl] Using vars, xptm | Date | Re: [xsl] Using vars, David Carlisle |
Month |