92 The XML Files: Develo pment of XML/XSL A pplications Using WebSp here Studio
5.4 XPath support
XPath is an XSL sub-language that is designed to be used with XSLT. It is used
for identifying or addressing parts of a source XML document. Every node within
an XML document can be uniquely identified and located using the syntax
defined for XPath.
WebSphere Application Developer provides support for XPath. To launch the
XPath Builder
򐂰Move to the XML perspective.
򐂰Choose an XML file in your project.
򐂰Right-click, and select Generate —>XPath.
Figure 5-9 XPath Builder
In order to define your XPath, the Application Developer provides you with means
for defining all the necessary constructs. Look at Figure 5-10. After you choose
the desired node in your XML tree, you will need to provide the steps for the
location paths. Although location paths are not the most general grammatical
construct in the language, they are the most important construct. A locat ion path
selects a set of nodes relative to the context node. The result of evaluating an
expression that is a location path, is the node-set containing the nodes selected