|
Home > Online Product Documentation > Table of Contents > Understanding XPath Processor Terms Understanding XPath Processor TermsTo use the context operators, it is important to understand the following terms: Axis
An
axis specifies a list of nodes in relation to the context node. For example, the
Context NodeA context node is the node the XPath processor is currently looking at. The context node changes as the XPath processor evaluates a query. If you pass a document to the XPath processor, the root node is the initial context node. If you pass a node to the XPath processor, the node that you pass is the initial context node. During evaluation of a query, the initial context node is also the current node. Context Node SetA context node set is a set of nodes that the XPath processor evaluates. Current NodeCurrent node is the node that the XPath processor is looking at when it begins evaluation of a query. In other words, the current node is the first context node that the XPath processor uses when it starts to execute the query. During evaluation of a query, the current node does not change. If you pass a document to the XPath processor, the root node is the current node. If you pass a node to the XPath processor, that node is the current node. Document ElementThe document element is the element in a document that contains all other elements. The document element is an immediate child of the root node. When you obtain the document element of a document, you obtain all marked-up text in that document. Filter
A
filter in a query specifies a restriction on the set of nodes to be returned. For example, the filter in the following query restricts the result set to
Location Path ExpressionA location path expression is an XPath expression. It has the following format:
Location StepAn XPath expression consists of one or more location steps. A location step has the following format:
Node Test
You apply a
node test to a list of nodes. A node test returns nodes of a particular type or nodes with a particular name. For example, a node test might return all
Root Node
The
root node is the root of the tree. It does not occur anywhere else in the tree. The document element node for a document is a child of the root node. The root node also has as children processing instructions and
|
Generate XSD
Stylus Studio® can generate an industry standard W3C XSD (or DTD) by correctly inferring an XML data model from an XML instance document.
XML Programming
Simplify XML Programming with Stylus Studio's XML Pipeline, a powerful tool for modeling, programming, debugging and deploying complete XML programs.
Using DTD in Java Applications
Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.
XML Project
Stylus Studio's Project Window is an intuitive, visual feature for organizing files belonging to a project. It supports different file-type icons and nested folders; many helpful options are available from the context menu.