File: Data.xml
Getting Started with Microsoft Visual C++
Java
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
First subject preceding "Java" is
select="//subject[. = 'Java'
]/preceding-sibling::subject[ 1 ]" />
Output:
First subject preceding "Java" is