SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 15-03-2019 12:22:46

MarekR
Member
Registered: 21-02-2019
Posts: 19

Rules: Length

This rule will remove any excess characters from a string.

Example:

Text = “This string should end here (), but it keeps going.”

We want to cut the text when it gets to this point "()"

<sxi:Field name="//*[local-name()=’Text’]">
 <sxi:Rules>
   <sxi:Length>30<sxi:Length>
 </sxi:Rules>
 <sxi:OutputField>Text</sxi:OutputField>
</sxi:Field>

After using the above config "Text" will now look as follows:

Text = “This string should end here ()”

Attributes:

  • removeElements:
    If this attribute is set to yes and the value of the sting is over the given length the entire string will be removed.

Last edited by MarekR (15-03-2019 12:56:59)

Offline

Board footer

Powered by FluxBB