Subject: RE: [xsl] Variables From: "Michael Kay" <mhk@xxxxxxxxx> Date: Tue, 13 Jul 2004 09:54:49 +0100 |
XSLT 2.0 solution: <xsl:variable name="z" select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[@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@xxxxxxx [mailto:xptm@xxxxxxx] > Sent: 12 July 2004 17:58 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Variables > > Hi: > > I have this vars defined: > > <xsl:variable name="pages"> > <xsl:for-each > select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[@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[@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[@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 ja esta livre de vmrus com a Panda Software, fique vocj tambim! > Clique em: http://antivirus.sapo.pt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Saxon 8.0b and NOTATIONs, Michael Kay | Thread | [xsl] Speeding up processing (with , TDarksword |
RE: [xsl] parsing string or numbers, Michael Kay | Date | Re: [xsl] how to replace a part of , Mukul Gandhi |
Month |