Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
The SequenceType construct is described in Chapter 4, on page 159, and more fully in Chapter 11, on page 668.
Content
An optional sequence constructor. If a
select
attribute is present, the element must be empty. For function parameters, the element must always be empty.
Effect
An
The
An explicit value can be supplied for a template parameter by using the
For function parameters, values are supplied in the function call. The syntax of function calls is defined in Chapter 7. Function calls pass parameters positionally rather than by name; the
n
th argument in the function call is evaluated to provide the value for the
n
th
The way in which explicit values are supplied for stylesheet parameters is implementation-defined (for example, they may be defined on the command line or through environment variables, or they may be supplied via a vendor-defined API). Microsoft APIs are described in Appendix D, and Java APIs in Appendix E.
The Type of the Parameter
The required type of the parameter can be specified using the
as
attribute. For example,
as=“xs:integer”
indicates that a single integer is expected,
as=“xs:string*”
indicates that a sequence of strings is expected, and
as=“element()+”
indicates that the required type is a sequence of one or more element nodes. With a schema-aware processor it is also possible to supply schema-defined types, for example
as=“abc:vehicle-registration”
indicates that the parameter must be an atomic value conforming to the user-defined atomic type
abc:vehicle-registration
, while
as=“schema-element(EVENT)”
indicates that it must be an element node validated as being either an
EVENT
element or an element in the substitution group of
EVENT
.