Pattern Syntax

The XPath pattern syntax is described formally in the XPath specification. Here we're going to look at the syntax in abstract, but less formal terms:

The formal syntax is made more complicated by the fact that it must describe both the abbreviated and unabbreviated syntaxes