xpath - XSLT position before and after -
<parent> ... <child>foo</child> <child current="true">current</child> <child>bar</child> ... </parent> how values of children before , after @current child (i.e. output foo , bar)? i'll outputting prev/next links using values. thanks!
child[@current='true']/preceding-sibling::child[1] child[@current='true']/following-sibling::child[1]
Comments
Post a Comment