I need to select the NativeDescription value when Credit_Term_Code=\"4\" by looping in XSLT:
To select the NativeDescription attribute of the Credit_Term_parent element with a Credit_Term_Code equal to 4, use one of the following XPaths:
If the ancestral structure above Credit_Term_parent is fixed as shown:
/Credit_code_parents/Credit_Term_parent[@Credit_Term_Code='4']/@NativeDescription
If there's potentially variable ancestral structure above
Credit_Term_parent (and assuming that the provided Credit_Term_Code is unique across the document):
//Credit_Term_parent[@Credit_Term_Code='4']/@NativeDescription
You ask for XSLT looping code:
Or, without the loop:
...or, alternatively, use the XPath from #1 above instead of the one from #2.