|
Home > Online Product Documentation > Table of Contents > Syntax for Specifying an Axis in a Query Syntax for Specifying an Axis in a QueryThe previous sections provide examples of XPath expression syntax that uses abbreviations. This section introduces you to the axis syntax that many of the abbreviations represent. For a list of XPath abbreviations, see XPath Abbreviations Quick Reference. You can use axis syntax to specify a location path in a query. An axis specifies the tree relationship between the nodes selected by an expression and the context node. The syntax for specifying an axis in a query is as follows:
The axis names are defined in Supported Axes. A node test is a simple expression that tests for a specified node type or node name. For example:
XPath 2.0 adds additional tests, such as In addition, you can follow the node test with any number of filters. |
XML Syntax Help - Intelligent XML Editing
Stylus Studio's XML Editors feature Intelligent XML Schema/DTD-Aware Code Sensing and context sensitive XML code auto-completion. Simplify XML editing with Stylus Studio today.
Using OASIS XML Catalogs in Stylus Studio
Learn about Stylus Studio's XML catalog support and how to work with XML catalogs in your Stylus Studio XML projects.
Validate XML Using XSD
You can validate XML documents against any data model defined using W3C XSD, using any major XSD Validator, including MSXML 3.0, MSXML 4.0, MSXML 6.0, Xerces-J, Xerces-C, Microsoft System.XML (1.0 and 2.0), XSV, the Saxonica XSD Validator and others.
XQuery Functions - User Defined Functions in XQuery
Dr. Michael Kay's tutorial entitled: 'Defining your own Functions in XQuery' explains how to write powerful User Defined Functions in XQuery.