Subject: Re: [xsl] Variables From: xptm@xxxxxxx Date: Tue, 13 Jul 2004 13:37:42 +0100 |
Well, looking at your example, from a conceptual point of view, i understand what it should do, but since i'm no xslt specialist i couldn't put it to work. I tryed several changes but it won't work, as far as i can see the <xsl:for-each select="document('')/*/x:x"> loop never do anything... However, doesen't this example be as much resources-consuming as the other one with variables? Afterall the number of loops in here is the same as the number of vars... Well, i think i'll stick with declaring all variables, as there are only four at the moment, and think about this if the number get's too bigger. Thanks. Citando David Carlisle <davidc@xxxxxxxxx>: > > > are you sure that you need any variables at all? > > > You could use something like the following setup which is variable free... > > <xsl:stylesheet ... > xmlns:x="anything" > > > > <x:x name="pages" elem="FormZoom"/> > <x:x name="params" elem="ParametroZoom"/> > > ... > <xsl:template ...> > <Event method="nextPage" target="btnProceed" type="ActionHandler"> > <xsl:for-each select="document('')/*/x:x"> > <xsl:attribute name="{@name}"> > <xsl:for-each > > select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[@Coluna!='xxx']/*[name()=c urrent()/@elem"> > <xsl:value-of select="."/> > <xsl:text>:</xsl:text> > </xsl:for-each> > </xsl:attribute> > </xsl:for-each> > </Event> > .... > > 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 > ________________________________________________________________________ > > 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] Variables, David Carlisle | Thread | [xsl] Saxon 8.0b and NOTATIONs, Peter Flynn |
Re: [xsl] Variables, xptm | Date | Re: [xsl] templates/themes/look-and, tpass001 |
Month |