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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -