There is a way to remove an attribute completely:
<xpath expr="//field[@name='order_line']/tree" position="attributes">
And there is a way to completely replace an attribute with smth else:
<xpath expr="//label[@for='type']" position="attributes">
But is there a short way to append a value to an attribute?
So that after appending my_second_class to attribute class in <div class="my_first_class"> we receive <div class="my_first_class my_second_class">.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/19/15, 3:06 AM|
|Seen: 924 times|
|Last updated: 3/16/15, 8:10 AM|