1. The StartsWith function is used to test whether a string starts with a given string: «If(StartsWith(Surname,’van ‘)»«Title» «Surname» is probably of Dutch descent.«End()» «If(StartsWith(Surname,’van ‘)»«SetV(‘LastPart’,substring-after(Surname,’van ‘))»«End()» In previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still recognize this command. 2. EndsWith tests the end of a string: «If(EndsWith(Surname,’-Smith’)» […]
XpressDox Help Center
Use Google To Find Help Fast, e.g. xpressdox choosefromlist
Press Getting Started in the XpressDox toolbar for basic template development
Watch the tutorial videos
View command help from list of commands
Press F1 for help on a command in the Command Editor
Email support@xpressdox.com for assistance
Tag: contains
Tag: contains
Testing parts of a string
Using XSLT functions
Using XSLT functions
XpressDox uses XSLT technology to insert data elements into Merge Fields. This means that a vast amount of functionality is available to the experienced user, especially the XSLT functions, which are used to format data. XpressDox functions and XSLT functions can be mixed in one Merge Field
The StartsWith Function
The StartsWith Function
The StartsWith function (an XSLT function) is used to test whether a string starts with a given string: «If(StartsWith(Surname,’van ‘)»«Title» «Surname» is probably of Dutch descent.«End()» «If(StartsWith(Surname,’van ‘)»«Setv(‘LastPart’,substring-after(Surname,’van ‘))»«End()» In previous versions this command was known as starts-with. Backward compatibility ensures that XpressDox will still recognize this command.
The Contains Function
The Contains Function
Contains (an XSLT function). This command is used to test for a string anywhere inside another string: «If(contains(Surname,’prmzl’))»«Surname» is not an English name.«End()» Read more about testing various parts of a string here