[xsl] Changing a node value for a variable

Subject: [xsl] Changing a node value for a variable
From: Jeff Harman <jharman@xxxxxxxxxxxxxxx>
Date: Tue, 26 Nov 2002 09:29:25 -0500
I have a question:

Since a variable may contain a node set, is it possible to modify the value
of one node in the variables nodes.

Example:
<foo>
  <data1>Tom</data1>
  <data2>Jones</data2>
</foo>

to

<foo>
  <data1>Bridget</data1>
  <data2>Jones</data2>
</foo>

or is it possible to add a new child node?

Example:
<foo>
  <data1>Tom</data1>
  <data2>Jones</data2>
</foo>

to

<foo>
  <data1>Tom</data1>
  <data2>Jones</data2>
  <data3>Bridget</data3>
</foo>

Thanks,
-Jeff Harman

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


Current Thread