xsl-list
[Top] [All Lists]

Re: Using vars

2004-07-27 06:18:22

  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(_at_)lists(_dot_)mulberrytech(_dot_)com
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="{(_at_)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
________________________________________________________________________