M
<figure>: $@//a[has-class("fancybox")]
@set_attr(@src, ./parent::figure/@href): $@//img
Size: a a a
M
M
w
M
M
M
M
@set_attr(attr, value): xpath_query
value can be an XPath expression that begins with ., in this case the query will be executed relative to the relevant node, and the text value of the returned elements will be used as the attribute's value.M
d
M
M
►
M
M
M
M
►
A
M
M