File: Data.xml
favorite="f1">XSLT
favorite="Doug">Java
favorite="Doug">C++
favorite="f1">SQL
favorite="Sheri">Oracle
favorite="Sheri">Java
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
select="/favorite-books/booklist
/book[contains(@favorite, 'Doug')]"/>
select="/favorite-books/booklist
/book[contains(@favorite, 'Sheri')]"/>
Books we both like:
Output:
Books we both like: