xsl-list
[Top] [All Lists]

RE: Variables

2004-07-13 01:54:49
XSLT 2.0 solution:

<xsl:variable name="z"
select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[(_at_)Coluna!='xxx']"/>

<xsl:variable name="pages" select="string-join($z/FormZoom, ':')"/> 
<xsl:variable name="params" select="string-join($z/ParametroZoom, ':')"/>

etc.

Michael Kay 

-----Original Message-----
From: xptm(_at_)sapo(_dot_)pt [mailto:xptm(_at_)sapo(_dot_)pt] 
Sent: 12 July 2004 17:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Variables

Hi:

I have this vars defined:

      <xsl:variable name="pages">
          <xsl:for-each
select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[(_at_)Coluna!='xxx']">
            <xsl:value-of select="concat(FormZoom,':')" />
          </xsl:for-each>
      </xsl:variable>
      <xsl:variable name="params">
          <xsl:for-each
select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[(_at_)Coluna!='xxx']">
            <xsl:value-of select="concat(ParametroZoom,':')" />
          </xsl:for-each>
      </xsl:variable>

As it is possible that the number of vars can grow, can i 
have some equivalent
to

      <xsl:for-each
select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[(_at_)Coluna!='xxx']">
              <xsl:variable name="pages">
          <xsl:value-of select="concat(FormZoom,':')" />
              </xsl:variable>
              <xsl:variable name="params">
            <xsl:value-of select="concat(ParametroZoom,':')" />
      </xsl:variable>
      </xsl:for-each>


Thanks.








O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





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