Argument Types

XSH2 commands accept arguments of various types, usually expressed as Perl or XPath expressions. Unlike in most languages, individual XSH2 commands may evaluate the same expression differently, usually to enforce a result of a certain type (such as a node-list, a string, a number, a filename, a node name, etc.). See expression and individual argument types for more information.

Related topics

command-or-block

single XSH2 command or a block of XSH2 commands

command

List of XSH2 commands and their general syntax

document

specifying documents

encoding

character encoding (codepage) identifier

expression

expression argument type

filename

specifying filenames

location

relative destination specification (such as after, before, etc.)

nodename

specifying names of DOM nodes

node-type

node type specification (such as element, attribute, etc.)

perl-code

in-line code in Perl programming language

subroutine

name of a sub-routine

$variable

xpath

XPath expression