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

Re: How can I chang the value og a global variable?

Subject: Re: How can I chang the value og a global variable?
From: Marcial Atienzar Navarro <maratna@xxxxxxxxxxxxx>
Date: Fri, 15 Nov 2002 08:27:48 +0100 (CET)
jstl global variable
Hello everybody,

 I'm working with jstl. I've a jsp that has the structure of a xml. I need to
make a table with paging. I obtain the values of the table with jsp tags, and
mount the xml. To make the paging a need to know what is the last id of the table:

      <entrys>
              <entry><s2k:GetData dataName="{$tabla}" columnNum="1" /></entry>
              <entry><s2k:GetData dataName="{$tabla}" columnNum="2" /></entry>
              <param><s2k:GetRowNumber tableName="{$tabla}"/></param>
      </entrys>  

 Is to say, in the node param I have the value of this ID. In the xsl I need to
take only the last index, because this is the correct.

 When I had the correct value of this variable I need to introduce a script code
to finish.

 A lot of thanks,

   Marcial Atienzar

Missatge citat per: David Carlisle <davidc@xxxxxxxxx>:

> 
> > I need to change the value, because, in another template I use the
> value of
> > this variable, and if I use the shadow property I loose the changes
> that in this
> > template occurs.
> 
> 
> The whole point about declarative programing languages is that they
> are
> side effect free: Calling a function/template returns a result but it
> never has unexpected side effects like changing the values of
> variables,
> or any other state changes.
> 
> If you said whattransform you wanted to perform ratherthan saying that
> you want to program XSLt as if it were fortran, we could offer more
> constructive help.
> 
> David
> 
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively
> call
> Star Internet for details on the Virus Scanning Service.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.