Altova MapForce 2025 Professional Edition

Returns a sequence of nodes/rows using the "from" and "till" parameters as the boundaries. The first item is at position 1.

mf-func-items-from-till

 

Languages

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

 

Parameters

Name

Description

nodes/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.

from

This integer specifies the starting position from which items must be retrieved.

till

This integer specifies the position up to which items must be retrieved.

 

Example

The following mock-up mapping generates a sequence of 10 values. The sequence is processed by the items-from-till function and the result is written to a target XML file.

mf-func-items-from-till-example

Because the from and till arguments are set to 3 and 5, respectively, only the subset of values from 3 through 5 are passed on to the target. Consequently, the mapping output is as follows (excluding the XML and schema declarations):

 

<items>
  <item>3</item>
  <item>4</item>
  <item>5</item>
</items>

© 2018-2024 Altova GmbH