xsl-list
[Top] [All Lists]

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

2002-11-15 00:27:48
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(_at_)nag(_dot_)co(_dot_)uk>:


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