[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using vars
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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|