Altova MapForce 2023 Professional Edition

Skips the first N items of the input sequence, where N is supplied by the count argument, and returns the rest of the sequence.

mf-func-skip-first-items

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Description

node/rows

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.

count

Optional argument. Specifies the number of items to skip. The default value is 1.

 

Example

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.

mf-func-skip-first-items-example

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):

 

<items>
  <item>3</item>
</items>

© 2016-2022 Altova GmbH