Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

XPath Expressions Overview for SLAX

XPath expressions can appear either as the contents of an XML element or as the contents of an expr (expression) statement. In either case, the value is translated to either an <xsl:text> element, which outputs literal text, or to an <xsl:value-of> element, which extracts data from an XML structure.

You encode strings using quotation marks (single or double). The concatenation operator is the underscore (_), as in PERL 6.

In this example, the contents of the <three> and <four> elements are identical, and the content of the <five> element differs only in the use of the XPath concat() function. The resulting output is the same in all three cases.

The XSLT equivalent is: