P
paul_0403
I am looking to find a line in my XML and than change it's value
through the use of .xslt using match, copy, value-of select, ... code.
Here is the contents of my XML file
<l_entries>
<l_entry>
<v name="ZZZ" path="{VAR}/tmp"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var1"/>
</l_entry>
</l_entries>
What I want is code to find this line ONLY <v name="ABC" path="${XYZ}/
var"/>
Note: its "var" and not "var1", ... and than change
path="${XYZ}/var to the contents of what ever is stored in my variable
$XXX (ie c:/tmp/123/abc)
When the transformation is over my output should look like this
<l_entries>
<l_entry>
<v name="ZZZ" path="{VAR}/tmp"/>
</l_entry>
<l_entry>
<v name="ABC" path="c:/tmp/123/abc"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var1"/>
</l_entry>
</l_entries>
Any help would be greatly appreciated. Thanks in advance to all who
answer
through the use of .xslt using match, copy, value-of select, ... code.
Here is the contents of my XML file
<l_entries>
<l_entry>
<v name="ZZZ" path="{VAR}/tmp"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var1"/>
</l_entry>
</l_entries>
What I want is code to find this line ONLY <v name="ABC" path="${XYZ}/
var"/>
Note: its "var" and not "var1", ... and than change
path="${XYZ}/var to the contents of what ever is stored in my variable
$XXX (ie c:/tmp/123/abc)
When the transformation is over my output should look like this
<l_entries>
<l_entry>
<v name="ZZZ" path="{VAR}/tmp"/>
</l_entry>
<l_entry>
<v name="ABC" path="c:/tmp/123/abc"/>
</l_entry>
<l_entry>
<v name="ABC" path="${XYZ}/var1"/>
</l_entry>
</l_entries>
Any help would be greatly appreciated. Thanks in advance to all who
answer