Explicitly Specifying the Current Context

If you want to explicitly specify the current context node, place a dot and a forward slash ( ./) in front of the query. This construct typically appears in queries that contain filters . The following two queries are equivalent:

./author 
               
author
               

            

Remember, if you specify the name of an element as a complete query (for example, foo), you obtain only the foo elements that are children of the current context node. You do not necessarily obtain all foo elements in the document.

You can also specify the dot notation ( .) to indicate that you want the XPath processor to manipulate the current context. For example:

//title [. = "History of Trenton"]
               

            

In this example, the XPath processor finds all title elements. The dot indicates the context node. This causes the XPath processor to check each title in turn to determine whether its string value is History of Trenton.

Stylus Studio API Documentation

Java API reference materials providing detailed information about Stylus Studio and other industry leading XML processing components.

Using the Stylus Studio XML Grid View

This free onlince video tutorial shows how to use the Stylus Studio XML Grid View.

XQuery Integration

Learn how new XQuery technologies can simplify legacy data integration by leveraging industry standards, proven open-source XML processing components, and Stylus Studio's integrated XQuery & XML tools.

DB2

IBM DB2 is a database management system for powering business applications. Learn how to build XML solutions on DB2 using Stylus Studio's DB2 tools.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member