Skips the first N items of the input sequence, where N is supplied by the count argument, and returns the rest of the sequence.
Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.
This input must receive a connection from a mapping item that provides a sequence of zero or more values. For example, the connection may originate from a source XML item, a CSV field, a database record, and so on.
Optional argument. Specifies the number of items to skip. The default value is 1.
The following mock-up mapping generates the sequence 1,2,3. The sequence is processed by the skip-first-items function and the result is written to a target XML file.
Because the count argument is set to 2, the first two items are skipped and the remaining items are passed on to the target. Consequently, the mapping output is as follows (excluding the XML and schema declarations):