[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Variables

Subject: Re: Variables
From: xptm@xxxxxxx
Date: Tue, 13 Jul 2004 13:36:36 +0100
declaring variables in xslt
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
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
with variables? Afterall the number of loops in here is the same as the
of vars...

Well, i think i'll stick with declaring all variables, as there are only four
the moment, and think about this if the number get's too bigger.


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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.