You are here: StringsAttributeSplitter

AttributeSplitter

Splits a selected attribute into a list attribute. Each item in the list will contain a single token split from the list.

You would use this transformer, for example, to separate an attribute that has a comma-separated value list into its component pieces.

Input Ports

Output Ports

Parameters

Usage Notes: Accessing Individual List Elements

Lists are usually indicated in Workbench by name, followed by a pair of curly brackets

mylist{}

A specific list element contains its number between the brackets:

mylist{0}

Attributes of a list element are shown like this:

mylist{0}.myattribute

However, list elements generated by the AttributeSplitter contain values but no attributes.

To access specific list elements in Workbench, right-click on a list name in the attribute list and choose Expose Elements.

In the dialog that appears, type the number of elements you want to expose.

Keep in mind that list elements start counting at 0, so exposing 1 element of mylist{} will result in the extra attribute mylist{0}.

Examples

Related Transformers

You can also use the StringSearcher to split apart the values of attributes using regular expression pattern matching.

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Strings

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.