There are many tutorials explaining the syntax's of XPathQuery. What gets me confused sometimes is the understanding of the match and select statements of the templates. Here is a simple example. The XML file that we are going to query is: School.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="Apply.xslt"?> <School> <title>The Xpath Exercise</title> <people> <teacher> <FirstName>Henry</... <age>45</age> <description>Henry ......
Suppose You have a XML File Jungle.xml. <?xml version="1.0"?> <project> <title>The Xpath project</title> <problems> <problem> <title>Initial problem</title> <description>We have to learn something about Location Path</description> <difficulty level="5">This problem should not be too hard</difficulty> </problem> <solutions> <item val="low">Buy a XSLT book</item> <item val="low">Find an XSLT website</item> ......