xsl-list
[Top] [All Lists]

Re: Variables

2004-07-13 05:37:42
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(_at_)nag(_dot_)co(_dot_)uk>:



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="{(_at_)name}">
       <xsl:for-each


select="/Formatos/Forms/Form/Grids/Grid/Zooms/Zoom[(_at_)Coluna!='xxx']/*[name()=current()/@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
________________________________________________________________________

--+------------------------------------------------------------------
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>
--+--









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


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