I have been tasked with building an XSLT file using a specific set of XML. The only problem is I have never used XSLT or XML. I have been digging through it for the last few hours and have hit my first real roadblock.
I need to return or print a value based on a given attribute in a specific XML node.
XML:
<Numbers>
<Products productCode="RSD">
<Value>54.99</Value>
<Value>12.35</Value>
<Value>8.00</Value>
<Value>9.99</Value>
</Products>
</Numbers>
I need my XSLT transform to produce a heading based on the productCode attribute (so that it can be placed in a table for better legibility). I am a JavaScript developer so in essence I am looking for the equivalent of
if(productCode === "RSD"){
this.html("Product Heading");
}
I am completely out of my comfort zone here so any tips/pointers/advice is greatly appreciated.
Thank You!