What Is XPath?

   



What Is a Location Path?

In XSL parlance, a location path consists of the 'directions' to a node. A location path can consist of three components: an axis, a node test, and an optional predicate. In colloquial terms, think of an axis as the 'direction' of travel; e.g., 'downward' in the direction of the child nodes. A node test is a condition for testing whether a candidate node belongs to a set; e.g., is the candidate node a child node of the context node? Finally, the predicate might extract the value of an element node or an attribute; e.g., select the contents of the <name> node of a chapter node. Again, keep in mind that these are very informal descriptions that are intended to facilitate your understanding of a location path.



   



Fundamentals of SVG Programming. Concepts to Source Code
Fundamentals of SVG Programming: Concepts to Source Code (Graphics Series)
ISBN: 1584502983
EAN: 2147483647
Year: 2003
Pages: 362

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net