This is in a for-each loop and I am listing out text from the elements and separating them by commas. I do not want the last element to have a comma after it.
This is what my xpath expression looks like in AutoTag
<wr:if test="position() != last() "">
Here is example xml
<cars>
<car>
<Type>SUV</Type>
</car>
<car>
<Type>Sedan</Type>
</car>
<car>
<Type>Minivan</Type>
</car>
</cars>
So the output would look like:
SUV,Sedan,Minivan
I can get the text from the elements to output correctly, just can't get the commas to look right.