I hope this helps you . I have the following xml code and I want to add a note in node manufacturedMaterial only if it has the attribute determinerCode. , Can you check the list of attributes in the node?
if(node.getAttributes().getNamedItem("determinerCode") != null)
// Add your node here...
XPATH / XSLT: Selecting a node where the parent node's attribute matches the attribute of another node
By : user195434
Date : March 29 2020, 07:55 AM
Does that help As an alternative to using a variable, you can make use of the "current()" operator to get the current Author node you are on