Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2007, 03:36 PM
Authorized User
 
Join Date: Jun 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default adding on to variables

Can you build onto a variable? For example, if

<xsl:variable name="intervals">
<i>200</i>
<i>200</i>
<i>230</i>
<i>230</i>
<i>230</i>
</xsl:variable>

Can I later in the stylesheet, add more <i> nodes to that node set?
 
Old November 29th, 2007, 04:46 AM
Authorized User
 
Join Date: Oct 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

maybe you can make a new variable with the same name with the node-set of 'intervals' + a <i> element, tough i am not a expert, just trying to help

 
Old November 29th, 2007, 04:51 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

No, you can't change the value of a variable.

If you explain why you are trying to do this (giving examples of your input and expected output) then there may be an alternative solution.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
variables daniel.mihalcea Javascript 1 September 9th, 2008 07:06 PM
using variables webgrphx Classic ASP Basics 3 April 11th, 2007 06:46 PM
Expandable Variables goels Access VBA 1 October 1st, 2004 02:36 PM
Problem in Adding Variables with decimals sa_moizatyahoo Classic ASP Basics 1 April 3rd, 2004 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.