본문 바로가기

IT/XSL

xpath to filter a specific 'value' of the node

XSL파싱할때, 노드의 값을 가지고 찾아 내야 할 경우가 있는데, 가끔 헷갈릴때가 많다. 나중에 찾아볼라고 여기에 적어 둘련다. 

### html
to filter a string which value contains 'viewreport'...
{content[@name='url']/text()[contains(.,'ViewReport')]}