Hello guys I have an xslt file I want to extract data from.
I am new to xslt but at the moment I can perform basic operations like looping through the nodes and creating element and attributes.
My problem is that I want to select a particular value from a particular node(from a list of nodes), here is an example.
<PersonsList>
<person>
<id>1233</id>
<name>john</name>
</person>
<person>
<id>444</id>
<name>peter</name>
</person>
<person>
<id>677</id>
<name>Amanda</name>
</person>
</PersonsList>
I want to get for example the name value say amanda if it matches the id. like in C# one would say: if (id==677) select name, Now I want the xslt equivalent.