[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Using vars

Subject: Re: Using vars
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Jul 2004 14:18:22 +0100
david carlisle
  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
  • Using vars
    • xptm - Mon, 26 Jul 2004 19:09:24 +0100
      • <Possible follow-ups>
      • Passin, Tom - Mon, 26 Jul 2004 14:55:44 -0400
      • xptm - Tue, 27 Jul 2004 14:00:55 +0100
        • David Carlisle - Tue, 27 Jul 2004 14:18:22 +0100 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.